supplier-meesho.webflow 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of supplier-meesho.webflow might be problematic. Click here for more details.
- package/.localized +0 -0
- package/2.sh +1 -0
- package/Complaince.pdf +0 -0
- package/GitRepos/CircleIndicator/.idea/caches/build_file_checksums.ser +0 -0
- package/GitRepos/CircleIndicator/.idea/caches/gradle_models.ser +0 -0
- package/GitRepos/CircleIndicator/.idea/checkstyle-idea.xml +16 -0
- package/GitRepos/CircleIndicator/.idea/compiler.xml +21 -0
- package/GitRepos/CircleIndicator/.idea/copyright/profiles_settings.xml +3 -0
- package/GitRepos/CircleIndicator/.idea/encodings.xml +6 -0
- package/GitRepos/CircleIndicator/.idea/gradle.xml +23 -0
- package/GitRepos/CircleIndicator/.idea/misc.xml +93 -0
- package/GitRepos/CircleIndicator/.idea/modules.xml +11 -0
- package/GitRepos/CircleIndicator/.idea/runConfigurations.xml +12 -0
- package/GitRepos/CircleIndicator/.idea/vcs.xml +6 -0
- package/GitRepos/CircleIndicator/CHANGELOG.md +62 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/README.md +4 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/build.gradle +22 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/proguard-rules.pro +17 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/src/main/AndroidManifest.xml +5 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/src/main/java/com/imbryk/viewPager/LoopPagerAdapterWrapper.java +168 -0
- package/GitRepos/CircleIndicator/LoopingViewPager/src/main/java/com/imbryk/viewPager/LoopViewPager.java +208 -0
- package/GitRepos/CircleIndicator/README.md +73 -0
- package/GitRepos/CircleIndicator/apk/sample.apk +0 -0
- package/GitRepos/CircleIndicator/build.gradle +20 -0
- package/GitRepos/CircleIndicator/circleindicator/build.gradle +30 -0
- package/GitRepos/CircleIndicator/circleindicator/gradle.properties +22 -0
- package/GitRepos/CircleIndicator/circleindicator/proguard-rules.pro +17 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/AndroidManifest.xml +5 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/java/me/relex/circleindicator/CircleIndicator.java +323 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/java/me/relex/circleindicator/SnackbarBehavior.java +45 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/res/animator/scale_with_alpha.xml +22 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/res/drawable/white_radius.xml +6 -0
- package/GitRepos/CircleIndicator/circleindicator/src/main/res/values/attrs.xml +60 -0
- package/GitRepos/CircleIndicator/circleindicator/upload-jcenter.gradle +67 -0
- package/GitRepos/CircleIndicator/circleindicator/upload-maven.gradle +55 -0
- package/GitRepos/CircleIndicator/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/GitRepos/CircleIndicator/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/GitRepos/CircleIndicator/gradle.properties +18 -0
- package/GitRepos/CircleIndicator/gradlew +164 -0
- package/GitRepos/CircleIndicator/gradlew.bat +90 -0
- package/GitRepos/CircleIndicator/sample/build.gradle +32 -0
- package/GitRepos/CircleIndicator/sample/proguard-rules.pro +17 -0
- package/GitRepos/CircleIndicator/sample/src/main/AndroidManifest.xml +23 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/SampleActivity.java +158 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/SamplePagerAdapter.java +59 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/ChangeColorFragment.java +28 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/CustomAnimationFragment.java +28 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/DefaultFragment.java +29 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/DynamicAdapterFragment.java +52 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/LoopViewPagerFragment.java +28 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/ResetAdapterFragment.java +41 -0
- package/GitRepos/CircleIndicator/sample/src/main/java/me/relex/circleindicator/sample/fragment/SnackbarBehaviorFragment.java +44 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/animator/indicator_animator.xml +16 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/animator/indicator_animator_reverse.xml +10 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/animator/indicator_no_animator.xml +4 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable/black_radius.xml +8 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable/black_radius_square.xml +7 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable/white_radius.xml +6 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable-hdpi/ic_launcher.png +0 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable-mdpi/ic_launcher.png +0 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable-xhdpi/ic_launcher.png +0 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/drawable-xxhdpi/ic_launcher.png +0 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/activity_sample.xml +22 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_change_color.xml +21 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_custom_animation.xml +26 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_default.xml +18 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_dynamic_adapter.xml +34 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_loop_viewpager.xml +18 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_reset_adapter.xml +27 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/fragment_sample_snackbar_behavior.xml +28 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/item_view.xml +2 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/layout/viewpager_activity.xml +74 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/values/array.xml +10 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/values/colors.xml +19 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/values/ids.xml +17 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/values/strings.xml +9 -0
- package/GitRepos/CircleIndicator/sample/src/main/res/values/styles.xml +26 -0
- package/GitRepos/CircleIndicator/screenshot.gif +0 -0
- package/GitRepos/CircleIndicator/settings.gradle +1 -0
- package/GitRepos/Time/.travis.yml +14 -0
- package/GitRepos/Time/LICENSE.md +22 -0
- package/GitRepos/Time/README.md +269 -0
- package/GitRepos/Time/build.gradle +23 -0
- package/GitRepos/Time/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/GitRepos/Time/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/GitRepos/Time/gradlew +172 -0
- package/GitRepos/Time/gradlew.bat +84 -0
- package/GitRepos/Time/settings.gradle +3 -0
- package/GitRepos/Time/time/build.gradle +20 -0
- package/GitRepos/Time/time/src/main/kotlin/com/kizitonwose/time/Extensions.kt +65 -0
- package/GitRepos/Time/time/src/main/kotlin/com/kizitonwose/time/Time.kt +143 -0
- package/GitRepos/Time/time/src/test/kotlin/com/kizitonwose/time/TimeTest.kt +110 -0
- package/GitRepos/Time/time-android/build.gradle +38 -0
- package/GitRepos/Time/time-android/proguard-rules.pro +21 -0
- package/GitRepos/Time/time-android/src/main/AndroidManifest.xml +2 -0
- package/GitRepos/Time/time-android/src/main/kotlin/com/kizitonwose/timeandroid/AndroidExtensions.kt +15 -0
- package/GitRepos/Time/time-android/src/main/res/values/strings.xml +3 -0
- package/GitRepos/black/.coveragerc +9 -0
- package/GitRepos/black/.flake8 +7 -0
- package/GitRepos/black/.github/CODE_OF_CONDUCT.md +11 -0
- package/GitRepos/black/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/GitRepos/black/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/GitRepos/black/.github/ISSUE_TEMPLATE/style_issue.md +29 -0
- package/GitRepos/black/.github/workflows/changelog.yml +21 -0
- package/GitRepos/black/.github/workflows/doc.yml +30 -0
- package/GitRepos/black/.github/workflows/docker.yml +43 -0
- package/GitRepos/black/.github/workflows/fuzz.yml +35 -0
- package/GitRepos/black/.github/workflows/lint.yml +28 -0
- package/GitRepos/black/.github/workflows/primer.yml +47 -0
- package/GitRepos/black/.github/workflows/pypi_upload.yml +31 -0
- package/GitRepos/black/.github/workflows/test.yml +76 -0
- package/GitRepos/black/.github/workflows/upload_binary.yml +51 -0
- package/GitRepos/black/.pre-commit-config.yaml +30 -0
- package/GitRepos/black/.pre-commit-hooks.yaml +9 -0
- package/GitRepos/black/.prettierrc.yaml +3 -0
- package/GitRepos/black/.readthedocs.yaml +14 -0
- package/GitRepos/black/AUTHORS.md +184 -0
- package/GitRepos/black/CHANGES.md +648 -0
- package/GitRepos/black/CONTRIBUTING.md +10 -0
- package/GitRepos/black/Dockerfile +14 -0
- package/GitRepos/black/LICENSE +21 -0
- package/GitRepos/black/Pipfile +36 -0
- package/GitRepos/black/Pipfile.lock +1308 -0
- package/GitRepos/black/README.md +220 -0
- package/GitRepos/black/action/Dockerfile +10 -0
- package/GitRepos/black/action/entrypoint.sh +9 -0
- package/GitRepos/black/action.yml +24 -0
- package/GitRepos/black/autoload/black.vim +172 -0
- package/GitRepos/black/docs/Makefile +20 -0
- package/GitRepos/black/docs/_static/custom.css +38 -0
- package/GitRepos/black/docs/_static/license.svg +1 -0
- package/GitRepos/black/docs/_static/logo2-readme.png +0 -0
- package/GitRepos/black/docs/_static/logo2.png +0 -0
- package/GitRepos/black/docs/_static/pypi_template.svg +1 -0
- package/GitRepos/black/docs/compatible_configs/flake8/.flake8 +3 -0
- package/GitRepos/black/docs/compatible_configs/flake8/setup.cfg +3 -0
- package/GitRepos/black/docs/compatible_configs/flake8/tox.ini +3 -0
- package/GitRepos/black/docs/compatible_configs/isort/.editorconfig +2 -0
- package/GitRepos/black/docs/compatible_configs/isort/.isort.cfg +2 -0
- package/GitRepos/black/docs/compatible_configs/isort/pyproject.toml +2 -0
- package/GitRepos/black/docs/compatible_configs/isort/setup.cfg +2 -0
- package/GitRepos/black/docs/compatible_configs/pylint/pylintrc +5 -0
- package/GitRepos/black/docs/compatible_configs/pylint/pyproject.toml +5 -0
- package/GitRepos/black/docs/compatible_configs/pylint/setup.cfg +5 -0
- package/GitRepos/black/docs/conf.py +227 -0
- package/GitRepos/black/docs/contributing/gauging_changes.md +42 -0
- package/GitRepos/black/docs/contributing/index.rst +42 -0
- package/GitRepos/black/docs/contributing/issue_triage.md +169 -0
- package/GitRepos/black/docs/contributing/reference/reference_classes.rst +76 -0
- package/GitRepos/black/docs/contributing/reference/reference_exceptions.rst +12 -0
- package/GitRepos/black/docs/contributing/reference/reference_functions.rst +178 -0
- package/GitRepos/black/docs/contributing/reference/reference_summary.rst +16 -0
- package/GitRepos/black/docs/contributing/release_process.md +89 -0
- package/GitRepos/black/docs/contributing/the_basics.md +101 -0
- package/GitRepos/black/docs/getting_started.md +49 -0
- package/GitRepos/black/docs/guides/index.rst +14 -0
- package/GitRepos/black/docs/guides/introducing_black_to_your_project.md +50 -0
- package/GitRepos/black/docs/guides/using_black_with_other_tools.md +278 -0
- package/GitRepos/black/docs/index.rst +120 -0
- package/GitRepos/black/docs/integrations/editors.md +326 -0
- package/GitRepos/black/docs/integrations/github_actions.md +35 -0
- package/GitRepos/black/docs/integrations/index.rst +28 -0
- package/GitRepos/black/docs/integrations/source_version_control.md +14 -0
- package/GitRepos/black/docs/license.rst +6 -0
- package/GitRepos/black/docs/make.bat +36 -0
- package/GitRepos/black/docs/requirements.txt +6 -0
- package/GitRepos/black/docs/the_black_code_style/current_style.md +456 -0
- package/GitRepos/black/docs/the_black_code_style/future_style.md +35 -0
- package/GitRepos/black/docs/the_black_code_style/index.rst +19 -0
- package/GitRepos/black/docs/usage_and_configuration/black_as_a_server.md +78 -0
- package/GitRepos/black/docs/usage_and_configuration/file_collection_and_discovery.md +36 -0
- package/GitRepos/black/docs/usage_and_configuration/index.rst +24 -0
- package/GitRepos/black/docs/usage_and_configuration/the_basics.md +286 -0
- package/GitRepos/black/fuzz.py +85 -0
- package/GitRepos/black/gallery/Dockerfile +11 -0
- package/GitRepos/black/gallery/README.md +45 -0
- package/GitRepos/black/gallery/gallery.py +307 -0
- package/GitRepos/black/mypy.ini +39 -0
- package/GitRepos/black/plugin/black.vim +60 -0
- package/GitRepos/black/profiling/dict_big.py +8001 -0
- package/GitRepos/black/profiling/dict_huge.py +41440 -0
- package/GitRepos/black/profiling/list_big.py +4000 -0
- package/GitRepos/black/profiling/list_huge.py +22431 -0
- package/GitRepos/black/profiling/mix_big.py +1002 -0
- package/GitRepos/black/profiling/mix_huge.py +7692 -0
- package/GitRepos/black/profiling/mix_small.py +102 -0
- package/GitRepos/black/pyproject.toml +34 -0
- package/GitRepos/black/setup.cfg +2 -0
- package/GitRepos/black/setup.py +113 -0
- package/GitRepos/black/src/black/__init__.py +1062 -0
- package/GitRepos/black/src/black/__main__.py +3 -0
- package/GitRepos/black/src/black/brackets.py +334 -0
- package/GitRepos/black/src/black/cache.py +83 -0
- package/GitRepos/black/src/black/comments.py +269 -0
- package/GitRepos/black/src/black/concurrency.py +39 -0
- package/GitRepos/black/src/black/const.py +4 -0
- package/GitRepos/black/src/black/debug.py +48 -0
- package/GitRepos/black/src/black/files.py +243 -0
- package/GitRepos/black/src/black/linegen.py +984 -0
- package/GitRepos/black/src/black/lines.py +734 -0
- package/GitRepos/black/src/black/mode.py +123 -0
- package/GitRepos/black/src/black/nodes.py +843 -0
- package/GitRepos/black/src/black/numerics.py +65 -0
- package/GitRepos/black/src/black/output.py +83 -0
- package/GitRepos/black/src/black/parsing.py +215 -0
- package/GitRepos/black/src/black/py.typed +1 -0
- package/GitRepos/black/src/black/report.py +100 -0
- package/GitRepos/black/src/black/rusty.py +28 -0
- package/GitRepos/black/src/black/strings.py +216 -0
- package/GitRepos/black/src/black/trans.py +1925 -0
- package/GitRepos/black/src/black_primer/cli.py +147 -0
- package/GitRepos/black/src/black_primer/lib.py +361 -0
- package/GitRepos/black/src/black_primer/primer.json +143 -0
- package/GitRepos/black/src/blackd/__init__.py +211 -0
- package/GitRepos/black/src/blib2to3/Grammar.txt +215 -0
- package/GitRepos/black/src/blib2to3/LICENSE +254 -0
- package/GitRepos/black/src/blib2to3/PatternGrammar.txt +28 -0
- package/GitRepos/black/src/blib2to3/README +16 -0
- package/GitRepos/black/src/blib2to3/__init__.py +1 -0
- package/GitRepos/black/src/blib2to3/pgen2/__init__.py +4 -0
- package/GitRepos/black/src/blib2to3/pgen2/conv.py +256 -0
- package/GitRepos/black/src/blib2to3/pgen2/driver.py +253 -0
- package/GitRepos/black/src/blib2to3/pgen2/grammar.py +223 -0
- package/GitRepos/black/src/blib2to3/pgen2/literals.py +68 -0
- package/GitRepos/black/src/blib2to3/pgen2/parse.py +235 -0
- package/GitRepos/black/src/blib2to3/pgen2/pgen.py +428 -0
- package/GitRepos/black/src/blib2to3/pgen2/token.py +94 -0
- package/GitRepos/black/src/blib2to3/pgen2/tokenize.py +681 -0
- package/GitRepos/black/src/blib2to3/pygram.py +197 -0
- package/GitRepos/black/src/blib2to3/pytree.py +980 -0
- package/GitRepos/black/test_requirements.txt +9 -0
- package/GitRepos/black/tests/__init__.py +0 -0
- package/GitRepos/black/tests/conftest.py +1 -0
- package/GitRepos/black/tests/data/async_as_identifier.py +49 -0
- package/GitRepos/black/tests/data/beginning_backslash.py +12 -0
- package/GitRepos/black/tests/data/blackd_diff.diff +13 -0
- package/GitRepos/black/tests/data/blackd_diff.py +6 -0
- package/GitRepos/black/tests/data/bracketmatch.py +15 -0
- package/GitRepos/black/tests/data/cantfit.py +107 -0
- package/GitRepos/black/tests/data/class_blank_parentheses.py +58 -0
- package/GitRepos/black/tests/data/class_methods_new_line.py +270 -0
- package/GitRepos/black/tests/data/collections.py +174 -0
- package/GitRepos/black/tests/data/comment_after_escaped_newline.py +18 -0
- package/GitRepos/black/tests/data/comments.py +96 -0
- package/GitRepos/black/tests/data/comments2.py +342 -0
- package/GitRepos/black/tests/data/comments3.py +47 -0
- package/GitRepos/black/tests/data/comments4.py +94 -0
- package/GitRepos/black/tests/data/comments5.py +71 -0
- package/GitRepos/black/tests/data/comments6.py +118 -0
- package/GitRepos/black/tests/data/comments7.py +271 -0
- package/GitRepos/black/tests/data/comments_non_breaking_space.py +44 -0
- package/GitRepos/black/tests/data/composition.py +181 -0
- package/GitRepos/black/tests/data/composition_no_trailing_comma.py +367 -0
- package/GitRepos/black/tests/data/debug_visitor.out +810 -0
- package/GitRepos/black/tests/data/debug_visitor.py +32 -0
- package/GitRepos/black/tests/data/decorators.py +182 -0
- package/GitRepos/black/tests/data/docstring.py +377 -0
- package/GitRepos/black/tests/data/docstring_no_string_normalization.py +249 -0
- package/GitRepos/black/tests/data/empty_lines.py +187 -0
- package/GitRepos/black/tests/data/empty_pyproject.toml +2 -0
- package/GitRepos/black/tests/data/expression.diff +447 -0
- package/GitRepos/black/tests/data/expression.py +630 -0
- package/GitRepos/black/tests/data/expression_skip_magic_trailing_comma.diff +428 -0
- package/GitRepos/black/tests/data/fmtonoff.py +413 -0
- package/GitRepos/black/tests/data/fmtonoff2.py +40 -0
- package/GitRepos/black/tests/data/fmtonoff3.py +35 -0
- package/GitRepos/black/tests/data/fmtonoff4.py +36 -0
- package/GitRepos/black/tests/data/fmtskip.py +3 -0
- package/GitRepos/black/tests/data/fmtskip2.py +17 -0
- package/GitRepos/black/tests/data/fmtskip3.py +20 -0
- package/GitRepos/black/tests/data/fmtskip4.py +13 -0
- package/GitRepos/black/tests/data/fmtskip5.py +22 -0
- package/GitRepos/black/tests/data/force_py36.py +16 -0
- package/GitRepos/black/tests/data/force_pyi.py +65 -0
- package/GitRepos/black/tests/data/fstring.py +21 -0
- package/GitRepos/black/tests/data/function.py +247 -0
- package/GitRepos/black/tests/data/function2.py +58 -0
- package/GitRepos/black/tests/data/function_trailing_comma.py +88 -0
- package/GitRepos/black/tests/data/import_spacing.py +118 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/.definitely_exclude/a.pie +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/.definitely_exclude/a.py +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/.definitely_exclude/a.pyi +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/dont_exclude/a.pie +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/dont_exclude/a.py +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/dont_exclude/a.pyi +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/exclude/a.pie +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/exclude/a.py +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/b/exclude/a.pyi +0 -0
- package/GitRepos/black/tests/data/include_exclude_tests/pyproject.toml +3 -0
- package/GitRepos/black/tests/data/long_strings.py +589 -0
- package/GitRepos/black/tests/data/long_strings__edge_case.py +110 -0
- package/GitRepos/black/tests/data/long_strings__regression.py +888 -0
- package/GitRepos/black/tests/data/long_strings_flag_disabled.py +289 -0
- package/GitRepos/black/tests/data/missing_final_newline.diff +8 -0
- package/GitRepos/black/tests/data/missing_final_newline.py +3 -0
- package/GitRepos/black/tests/data/nested_gitignore_tests/pyproject.toml +3 -0
- package/GitRepos/black/tests/data/nested_gitignore_tests/root/b.py +1 -0
- package/GitRepos/black/tests/data/nested_gitignore_tests/root/c.py +1 -0
- package/GitRepos/black/tests/data/nested_gitignore_tests/root/child/c.py +1 -0
- package/GitRepos/black/tests/data/nested_gitignore_tests/x.py +0 -0
- package/GitRepos/black/tests/data/numeric_literals.py +44 -0
- package/GitRepos/black/tests/data/numeric_literals_py2.py +16 -0
- package/GitRepos/black/tests/data/numeric_literals_skip_underscores.py +23 -0
- package/GitRepos/black/tests/data/pep_570.py +44 -0
- package/GitRepos/black/tests/data/pep_572.py +47 -0
- package/GitRepos/black/tests/data/pep_572_do_not_remove_parens.py +21 -0
- package/GitRepos/black/tests/data/pep_572_remove_parens.py +105 -0
- package/GitRepos/black/tests/data/percent_precedence.py +41 -0
- package/GitRepos/black/tests/data/python2.py +33 -0
- package/GitRepos/black/tests/data/python2_print_function.py +16 -0
- package/GitRepos/black/tests/data/python2_unicode_literals.py +20 -0
- package/GitRepos/black/tests/data/python37.py +65 -0
- package/GitRepos/black/tests/data/python38.py +45 -0
- package/GitRepos/black/tests/data/python39.py +37 -0
- package/GitRepos/black/tests/data/remove_parens.py +142 -0
- package/GitRepos/black/tests/data/slices.py +31 -0
- package/GitRepos/black/tests/data/string_prefixes.py +18 -0
- package/GitRepos/black/tests/data/string_quotes.py +102 -0
- package/GitRepos/black/tests/data/stub.pyi +35 -0
- package/GitRepos/black/tests/data/trailing_comma_optional_parens1.py +3 -0
- package/GitRepos/black/tests/data/trailing_comma_optional_parens2.py +3 -0
- package/GitRepos/black/tests/data/trailing_comma_optional_parens3.py +8 -0
- package/GitRepos/black/tests/data/tricky_unicode_symbols.py +6 -0
- package/GitRepos/black/tests/data/tupleassign.py +23 -0
- package/GitRepos/black/tests/empty.toml +1 -0
- package/GitRepos/black/tests/optional.py +119 -0
- package/GitRepos/black/tests/test.toml +10 -0
- package/GitRepos/black/tests/test_black.py +2100 -0
- package/GitRepos/black/tests/test_blackd.py +166 -0
- package/GitRepos/black/tests/test_format.py +144 -0
- package/GitRepos/black/tests/test_primer.py +217 -0
- package/GitRepos/black/tests/util.py +74 -0
- package/GitRepos/black/tox.ini +28 -0
- package/GitRepos/danger-static_analyzer_comments/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/GitRepos/danger-static_analyzer_comments/.idea/modules.xml +8 -0
- package/GitRepos/danger-static_analyzer_comments/Gemfile +3 -0
- package/GitRepos/danger-static_analyzer_comments/Gemfile.lock +141 -0
- package/GitRepos/danger-static_analyzer_comments/Guardfile +19 -0
- package/GitRepos/danger-static_analyzer_comments/LICENSE +21 -0
- package/GitRepos/danger-static_analyzer_comments/PLUGIN.gemspec.template.cpgz +0 -0
- package/GitRepos/danger-static_analyzer_comments/PLUGIN_LICENSE.txt +22 -0
- package/GitRepos/danger-static_analyzer_comments/PLUGIN_README.md +20 -0
- package/GitRepos/danger-static_analyzer_comments/README.md +2 -0
- package/GitRepos/danger-static_analyzer_comments/Rakefile +23 -0
- package/GitRepos/danger-static_analyzer_comments/configure +123 -0
- package/GitRepos/danger-static_analyzer_comments/danger-static_analyzer_comments.gemspec +49 -0
- package/GitRepos/danger-static_analyzer_comments/lib/danger_plugin.rb +73 -0
- package/GitRepos/danger-static_analyzer_comments/lib/version.rb +3 -0
- package/GitRepos/danger-static_analyzer_comments/spec/danger_static_analyzer_comments_spec.rb +23 -0
- package/GitRepos/danger-static_analyzer_comments/spec/spec_helper.rb +65 -0
- package/GitRepos/isort/.codecov.yml +10 -0
- package/GitRepos/isort/.coveragerc +20 -0
- package/GitRepos/isort/.cruft.json +17 -0
- package/GitRepos/isort/.deepsource.toml +18 -0
- package/GitRepos/isort/.dockerignore +17 -0
- package/GitRepos/isort/.editorconfig +19 -0
- package/GitRepos/isort/.github/FUNDING.yml +2 -0
- package/GitRepos/isort/.github/workflows/integration.yml +35 -0
- package/GitRepos/isort/.github/workflows/lint.yml +35 -0
- package/GitRepos/isort/.github/workflows/test.yml +64 -0
- package/GitRepos/isort/.isort.cfg +5 -0
- package/GitRepos/isort/.pre-commit-config.yaml +5 -0
- package/GitRepos/isort/.pre-commit-hooks.yaml +9 -0
- package/GitRepos/isort/CHANGELOG.md +522 -0
- package/GitRepos/isort/Dockerfile +26 -0
- package/GitRepos/isort/LICENSE +21 -0
- package/GitRepos/isort/MANIFEST.in +4 -0
- package/GitRepos/isort/README.md +355 -0
- package/GitRepos/isort/art/isort_loves_black.png +0 -0
- package/GitRepos/isort/art/logo.png +0 -0
- package/GitRepos/isort/art/logo.xcf +0 -0
- package/GitRepos/isort/art/logo_5.png +0 -0
- package/GitRepos/isort/art/logo_large.png +0 -0
- package/GitRepos/isort/art/logo_large.xcf +0 -0
- package/GitRepos/isort/art/stylesheets/extra.css +5 -0
- package/GitRepos/isort/docs/configuration/action_comments.md +108 -0
- package/GitRepos/isort/docs/configuration/add_or_remove_imports.md +28 -0
- package/GitRepos/isort/docs/configuration/black_compatibility.md +63 -0
- package/GitRepos/isort/docs/configuration/config_files.md +89 -0
- package/GitRepos/isort/docs/configuration/custom_sections_and_ordering.md +131 -0
- package/GitRepos/isort/docs/configuration/git_hook.md +34 -0
- package/GitRepos/isort/docs/configuration/github_action.md +63 -0
- package/GitRepos/isort/docs/configuration/multi_line_output_modes.md +121 -0
- package/GitRepos/isort/docs/configuration/options.md +1314 -0
- package/GitRepos/isort/docs/configuration/pre-commit.md +32 -0
- package/GitRepos/isort/docs/configuration/profiles.md +86 -0
- package/GitRepos/isort/docs/configuration/setuptools_integration.md +27 -0
- package/GitRepos/isort/docs/contributing/1.-contributing-guide.md +81 -0
- package/GitRepos/isort/docs/contributing/2.-coding-standard.md +57 -0
- package/GitRepos/isort/docs/contributing/3.-code-of-conduct.md +88 -0
- package/GitRepos/isort/docs/contributing/4.-acknowledgements.md +259 -0
- package/GitRepos/isort/docs/major_releases/introducing_isort_5.md +142 -0
- package/GitRepos/isort/docs/major_releases/release_policy.md +46 -0
- package/GitRepos/isort/docs/quick_start/0.-try.md +50 -0
- package/GitRepos/isort/docs/quick_start/1.-install.md +22 -0
- package/GitRepos/isort/docs/quick_start/2.-cli.md +43 -0
- package/GitRepos/isort/docs/quick_start/3.-api.md +22 -0
- package/GitRepos/isort/docs/quick_start/interactive.css +26 -0
- package/GitRepos/isort/docs/quick_start/interactive.js +55 -0
- package/GitRepos/isort/docs/quick_start/isort-5.0.0-py3-none-any.whl +0 -0
- package/GitRepos/isort/docs/quick_start/isort-5.0.1-py3-none-any.whl +0 -0
- package/GitRepos/isort/docs/upgrade_guides/5.0.0.md +97 -0
- package/GitRepos/isort/docs/warning_and_error_codes/W0500.md +22 -0
- package/GitRepos/isort/example.gif +0 -0
- package/GitRepos/isort/example_isort_formatting_plugin/example_isort_formatting_plugin.py +23 -0
- package/GitRepos/isort/example_isort_formatting_plugin/poetry.lock +173 -0
- package/GitRepos/isort/example_isort_formatting_plugin/pyproject.toml +20 -0
- package/GitRepos/isort/example_shared_isort_profile/example_shared_isort_profile.py +7 -0
- package/GitRepos/isort/example_shared_isort_profile/poetry.lock +7 -0
- package/GitRepos/isort/example_shared_isort_profile/pyproject.toml +18 -0
- package/GitRepos/isort/isort/__init__.py +19 -0
- package/GitRepos/isort/isort/__main__.py +3 -0
- package/GitRepos/isort/isort/_future/__init__.py +12 -0
- package/GitRepos/isort/isort/_future/_dataclasses.py +1209 -0
- package/GitRepos/isort/isort/_vendored/toml/LICENSE +27 -0
- package/GitRepos/isort/isort/_vendored/toml/__init__.py +23 -0
- package/GitRepos/isort/isort/_vendored/toml/decoder.py +1053 -0
- package/GitRepos/isort/isort/_vendored/toml/encoder.py +295 -0
- package/GitRepos/isort/isort/_vendored/toml/ordered.py +13 -0
- package/GitRepos/isort/isort/_vendored/toml/tz.py +21 -0
- package/GitRepos/isort/isort/_version.py +1 -0
- package/GitRepos/isort/isort/api.py +576 -0
- package/GitRepos/isort/isort/comments.py +32 -0
- package/GitRepos/isort/isort/core.py +455 -0
- package/GitRepos/isort/isort/deprecated/__init__.py +0 -0
- package/GitRepos/isort/isort/deprecated/finders.py +415 -0
- package/GitRepos/isort/isort/exceptions.py +180 -0
- package/GitRepos/isort/isort/files.py +41 -0
- package/GitRepos/isort/isort/format.py +150 -0
- package/GitRepos/isort/isort/hooks.py +86 -0
- package/GitRepos/isort/isort/identify.py +206 -0
- package/GitRepos/isort/isort/io.py +73 -0
- package/GitRepos/isort/isort/literal.py +109 -0
- package/GitRepos/isort/isort/logo.py +19 -0
- package/GitRepos/isort/isort/main.py +1230 -0
- package/GitRepos/isort/isort/output.py +634 -0
- package/GitRepos/isort/isort/parse.py +569 -0
- package/GitRepos/isort/isort/place.py +145 -0
- package/GitRepos/isort/isort/profiles.py +86 -0
- package/GitRepos/isort/isort/py.typed +0 -0
- package/GitRepos/isort/isort/pylama_isort.py +43 -0
- package/GitRepos/isort/isort/sections.py +9 -0
- package/GitRepos/isort/isort/settings.py +779 -0
- package/GitRepos/isort/isort/setuptools_commands.py +61 -0
- package/GitRepos/isort/isort/sorting.py +118 -0
- package/GitRepos/isort/isort/stdlibs/__init__.py +2 -0
- package/GitRepos/isort/isort/stdlibs/all.py +3 -0
- package/GitRepos/isort/isort/stdlibs/py2.py +3 -0
- package/GitRepos/isort/isort/stdlibs/py27.py +300 -0
- package/GitRepos/isort/isort/stdlibs/py3.py +3 -0
- package/GitRepos/isort/isort/stdlibs/py35.py +222 -0
- package/GitRepos/isort/isort/stdlibs/py36.py +223 -0
- package/GitRepos/isort/isort/stdlibs/py37.py +224 -0
- package/GitRepos/isort/isort/stdlibs/py38.py +223 -0
- package/GitRepos/isort/isort/stdlibs/py39.py +223 -0
- package/GitRepos/isort/isort/utils.py +16 -0
- package/GitRepos/isort/isort/wrap.py +139 -0
- package/GitRepos/isort/isort/wrap_modes.py +323 -0
- package/GitRepos/isort/logo.png +0 -0
- package/GitRepos/isort/mkdocs.yml +2 -0
- package/GitRepos/isort/poetry.lock +2472 -0
- package/GitRepos/isort/pyproject.toml +114 -0
- package/GitRepos/isort/rtd/index.md +6 -0
- package/GitRepos/isort/scripts/build_config_option_docs.py +214 -0
- package/GitRepos/isort/scripts/build_profile_docs.py +42 -0
- package/GitRepos/isort/scripts/check_acknowledgments.py +83 -0
- package/GitRepos/isort/scripts/clean.sh +7 -0
- package/GitRepos/isort/scripts/docker.sh +12 -0
- package/GitRepos/isort/scripts/done.sh +5 -0
- package/GitRepos/isort/scripts/lint.sh +11 -0
- package/GitRepos/isort/scripts/mkstdlibs.py +47 -0
- package/GitRepos/isort/scripts/test.sh +6 -0
- package/GitRepos/isort/scripts/test_integration.sh +4 -0
- package/GitRepos/isort/setup.cfg +28 -0
- package/GitRepos/isort/tests/__init__.py +0 -0
- package/GitRepos/isort/tests/integration/test_hypothesmith.py +96 -0
- package/GitRepos/isort/tests/integration/test_projects_using_isort.py +166 -0
- package/GitRepos/isort/tests/integration/test_setting_combinations.py +1869 -0
- package/GitRepos/isort/tests/unit/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/conftest.py +33 -0
- package/GitRepos/isort/tests/unit/example_crlf_file.py +10 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/almost-implicit/.isort.cfg +2 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/almost-implicit/root/nested/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/almost-implicit/root/nested/x.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/almost-implicit/root/y.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/implicit/.isort.cfg +2 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/implicit/root/nested/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/implicit/root/nested/x.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/none/.isort.cfg +2 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/none/root/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/none/root/nested/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkg_resource/.isort.cfg +2 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkg_resource/root/__init__.py +1 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkg_resource/root/nested/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkg_resource/root/nested/x.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkgutil/.isort.cfg +2 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkgutil/root/__init__.py +1 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkgutil/root/nested/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/example_projects/namespaces/pkgutil/root/nested/x.py +0 -0
- package/GitRepos/isort/tests/unit/profiles/__init__.py +0 -0
- package/GitRepos/isort/tests/unit/profiles/test_attrs.py +102 -0
- package/GitRepos/isort/tests/unit/profiles/test_black.py +370 -0
- package/GitRepos/isort/tests/unit/profiles/test_django.py +122 -0
- package/GitRepos/isort/tests/unit/profiles/test_google.py +413 -0
- package/GitRepos/isort/tests/unit/profiles/test_hug.py +112 -0
- package/GitRepos/isort/tests/unit/profiles/test_open_stack.py +134 -0
- package/GitRepos/isort/tests/unit/profiles/test_plone.py +75 -0
- package/GitRepos/isort/tests/unit/profiles/test_pycharm.py +55 -0
- package/GitRepos/isort/tests/unit/profiles/test_wemake.py +87 -0
- package/GitRepos/isort/tests/unit/test_action_comments.py +47 -0
- package/GitRepos/isort/tests/unit/test_api.py +108 -0
- package/GitRepos/isort/tests/unit/test_comments.py +34 -0
- package/GitRepos/isort/tests/unit/test_deprecated_finders.py +210 -0
- package/GitRepos/isort/tests/unit/test_exceptions.py +100 -0
- package/GitRepos/isort/tests/unit/test_files.py +8 -0
- package/GitRepos/isort/tests/unit/test_format.py +121 -0
- package/GitRepos/isort/tests/unit/test_hooks.py +101 -0
- package/GitRepos/isort/tests/unit/test_identify.py +274 -0
- package/GitRepos/isort/tests/unit/test_importable.py +42 -0
- package/GitRepos/isort/tests/unit/test_io.py +43 -0
- package/GitRepos/isort/tests/unit/test_isort.py +5166 -0
- package/GitRepos/isort/tests/unit/test_literal.py +37 -0
- package/GitRepos/isort/tests/unit/test_main.py +1087 -0
- package/GitRepos/isort/tests/unit/test_output.py +22 -0
- package/GitRepos/isort/tests/unit/test_parse.py +82 -0
- package/GitRepos/isort/tests/unit/test_place.py +56 -0
- package/GitRepos/isort/tests/unit/test_pylama_isort.py +24 -0
- package/GitRepos/isort/tests/unit/test_regressions.py +1653 -0
- package/GitRepos/isort/tests/unit/test_settings.py +229 -0
- package/GitRepos/isort/tests/unit/test_setuptools_command.py +31 -0
- package/GitRepos/isort/tests/unit/test_ticketed_features.py +1117 -0
- package/GitRepos/isort/tests/unit/test_wrap.py +15 -0
- package/GitRepos/isort/tests/unit/test_wrap_modes.py +587 -0
- package/GitRepos/isort/tests/unit/utils.py +14 -0
- package/GitRepos/kettle/LICENSE.txt +21 -0
- package/GitRepos/kettle/README.md +215 -0
- package/GitRepos/kettle/bin/kettle-skeleton.php +316 -0
- package/GitRepos/kettle/composer.json +33 -0
- package/GitRepos/kettle/src/kettle.php +1418 -0
- package/GitRepos/mirrors-autoflake/.pre-commit-hooks.yaml +5 -0
- package/GitRepos/mirrors-autoflake/.version +1 -0
- package/GitRepos/mirrors-autoflake/hooks.yaml +7 -0
- package/GitRepos/mirrors-autoflake/setup.py +8 -0
- package/GitRepos/razorpay-java/LICENSE.txt +8 -0
- package/GitRepos/razorpay-java/README.md +421 -0
- package/GitRepos/razorpay-java/pom.xml +153 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Addon.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/AddonClient.java +17 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/ApiClient.java +194 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/ApiUtils.java +179 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/BankTransfer.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Card.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/CardClient.java +12 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Constants.java +78 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/CustomTLSSocketFactory.java +75 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Customer.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/CustomerClient.java +36 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Entity.java +45 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Invoice.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/InvoiceClient.java +32 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Order.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/OrderClient.java +32 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Payment.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/PaymentClient.java +83 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Plan.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/PlanClient.java +28 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/RazorpayClient.java +45 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/RazorpayException.java +21 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Refund.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/RefundClient.java +28 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Reversal.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Subscription.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/SubscriptionClient.java +36 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Token.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Transfer.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/TransferClient.java +36 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/Utils.java +62 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/VirtualAccount.java +10 -0
- package/GitRepos/razorpay-java/src/main/java/com/razorpay/VirtualAccountClient.java +44 -0
- package/GitRepos/razorpay-java/src/main/resources/project.properties +1 -0
- package/GitRepos/react-data-grid/.babelrc +8 -0
- package/GitRepos/react-data-grid/.github/ISSUE_TEMPLATE.md +25 -0
- package/GitRepos/react-data-grid/.github/PULL_REQUEST_TEMPLATE.md +38 -0
- package/GitRepos/react-data-grid/LICENSE +24 -0
- package/GitRepos/react-data-grid/README.md +82 -0
- package/GitRepos/react-data-grid/addons.js +1 -0
- package/GitRepos/react-data-grid/docs/api/docs.json +6685 -0
- package/GitRepos/react-data-grid/docs/markdowns/AdvancedToolbar.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/AutoCompleteEditor.md +68 -0
- package/GitRepos/react-data-grid/docs/markdowns/AutoCompleteFilter.md +22 -0
- package/GitRepos/react-data-grid/docs/markdowns/AutoCompleteTokensEditor.md +22 -0
- package/GitRepos/react-data-grid/docs/markdowns/Canvas.md +126 -0
- package/GitRepos/react-data-grid/docs/markdowns/Cell.md +101 -0
- package/GitRepos/react-data-grid/docs/markdowns/CheckboxEditor.md +27 -0
- package/GitRepos/react-data-grid/docs/markdowns/ContextMenu.md +12 -0
- package/GitRepos/react-data-grid/docs/markdowns/DateRangeEditor.md +24 -0
- package/GitRepos/react-data-grid/docs/markdowns/DateRangeFilter.md +42 -0
- package/GitRepos/react-data-grid/docs/markdowns/DateRangeFormatter.md +25 -0
- package/GitRepos/react-data-grid/docs/markdowns/DragDropContainer.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/Draggable.md +30 -0
- package/GitRepos/react-data-grid/docs/markdowns/DraggableHeaderCell.md +22 -0
- package/GitRepos/react-data-grid/docs/markdowns/DropDownEditor.md +12 -0
- package/GitRepos/react-data-grid/docs/markdowns/DropDownFormatter.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/EditorBase.md +32 -0
- package/GitRepos/react-data-grid/docs/markdowns/EditorContainer.md +37 -0
- package/GitRepos/react-data-grid/docs/markdowns/FilterableHeaderCell.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/Grid.md +169 -0
- package/GitRepos/react-data-grid/docs/markdowns/GroupedColumnButton.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/GroupedColumnsPanel.md +44 -0
- package/GitRepos/react-data-grid/docs/markdowns/Header.md +62 -0
- package/GitRepos/react-data-grid/docs/markdowns/HeaderCell.md +40 -0
- package/GitRepos/react-data-grid/docs/markdowns/HeaderRow.md +92 -0
- package/GitRepos/react-data-grid/docs/markdowns/ImageFormatter.md +12 -0
- package/GitRepos/react-data-grid/docs/markdowns/MenuHeader.md +12 -0
- package/GitRepos/react-data-grid/docs/markdowns/NumericFilter.md +17 -0
- package/GitRepos/react-data-grid/docs/markdowns/ReactDataGrid.md +209 -0
- package/GitRepos/react-data-grid/docs/markdowns/Row.md +70 -0
- package/GitRepos/react-data-grid/docs/markdowns/RowActionsCell.md +53 -0
- package/GitRepos/react-data-grid/docs/markdowns/RowDragLayer.md +42 -0
- package/GitRepos/react-data-grid/docs/markdowns/RowGroup.md +57 -0
- package/GitRepos/react-data-grid/docs/markdowns/SimpleCellFormatter.md +12 -0
- package/GitRepos/react-data-grid/docs/markdowns/SortableHeaderCell.md +27 -0
- package/GitRepos/react-data-grid/docs/markdowns/Toolbar.md +44 -0
- package/GitRepos/react-data-grid/docs/markdowns/Viewport.md +102 -0
- package/GitRepos/react-data-grid/docs/readme.md +38 -0
- package/GitRepos/react-data-grid/docs/utils/generalUtils.js +50 -0
- package/GitRepos/react-data-grid/docs/utils/generateMarkdown.js +74 -0
- package/GitRepos/react-data-grid/index.js +1 -0
- package/GitRepos/react-data-grid/package.json +120 -0
- package/GitRepos/react-data-grid/themes/DragColumn.PNG +0 -0
- package/GitRepos/react-data-grid/themes/daterangepicker-bs3.css +284 -0
- package/GitRepos/react-data-grid/themes/drag_column_full.PNG +0 -0
- package/GitRepos/react-data-grid/themes/react-data-grid.css +961 -0
- package/GitRepos/react-data-grid/themes/react-data-grid.less +629 -0
- package/Kali +0 -0
- package/MobSF/.dockerignore +26 -0
- package/MobSF/.github/CODE_OF_CONDUCT.md +46 -0
- package/MobSF/.github/CONTRIBUTING.md +131 -0
- package/MobSF/.github/FUNDING.yml +3 -0
- package/MobSF/.github/ISSUE_TEMPLATE/bug_report.md +54 -0
- package/MobSF/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
- package/MobSF/.github/PULL_REQUEST_TEMPLATE.md +20 -0
- package/MobSF/.github/SECURITY.md +21 -0
- package/MobSF/.github/SUPPORT.md +1 -0
- package/MobSF/.github/workflows/auto-comment.yml +22 -0
- package/MobSF/.github/workflows/docker-build.yml +35 -0
- package/MobSF/.github/workflows/mobsf_test.yml +58 -0
- package/MobSF/.github/workflows/python-publish.yml +28 -0
- package/MobSF/.gitmodules +3 -0
- package/MobSF/.pyup.yml +27 -0
- package/MobSF/.sonarcloud.properties +3 -0
- package/MobSF/Dockerfile +96 -0
- package/MobSF/LICENSE +675 -0
- package/MobSF/LICENSES/AdminLTE_theme.txt +8 -0
- package/MobSF/LICENSES/AntiEmulator.txt +660 -0
- package/MobSF/LICENSES/IP2LOCATION LITE DATA.txt +21 -0
- package/MobSF/LICENSES/Rootcloak.txt +13 -0
- package/MobSF/LICENSES/ac-pm_tools.txt +341 -0
- package/MobSF/LICENSES/androguard.txt +76 -0
- package/MobSF/LICENSES/backsmali.txt +29 -0
- package/MobSF/LICENSES/class-dump-z.txt +13 -0
- package/MobSF/LICENSES/droidmon.txt +624 -0
- package/MobSF/LICENSES/exodus-core.txt +661 -0
- package/MobSF/LICENSES/frida.txt +50 -0
- package/MobSF/LICENSES/ios_binary_analysis_rules.txt +28 -0
- package/MobSF/LICENSES/jadx.txt +202 -0
- package/MobSF/LICENSES/maltrail_blacklist.txt +21 -0
- package/MobSF/MANIFEST.in +12 -0
- package/MobSF/README.md +116 -0
- package/MobSF/docker-compose.yml +39 -0
- package/MobSF/manage.py +18 -0
- package/MobSF/mobsf/DynamicAnalyzer/__init__.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/admin.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/models.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tests.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/__init__.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/class_trace.js +126 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/get_loaded_classes.js +15 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/get_methods.js +22 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/search_class_pattern.js +55 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/string_catch.js +10 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/string_compare.js +15 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/default/api_monitor.js +572 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/default/debugger_check_bypass.js +8 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/default/root_bypass.js +260 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/default/ssl_pinning_bypass.js +255 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/aes_key.js +161 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/bypass_flag_secure.js +17 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/bypass_method.js +8 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/default.js +3 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/file_trace.js +455 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/get_android_id.js +9 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/helper.js +16 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/hook_constructor.js +7 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/hook_java_reflection.js +7 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/inputstream_dump.js +34 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/intent_dumper.js +21 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/jni_hook_by_address.js +28 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/jni_trace.js +42 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/frida_scripts/others/webview_enable_debugging.js +12 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/mobsf_agents/ClipDump.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/Xposed.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/XposedInstaller_3.1.5.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/hooks.json +389 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/AndroidBluePill.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/Droidmon.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/JustTrustMe.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/com.devadvance.rootcloak2_v18_c43b61.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/hooks.json +389 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/mobi.acpm.proxyon_v1_419b04.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/onDevice/xposed/modules/mobi.acpm.sslunpinning_v2_37f44f.apk +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/tools/webproxy.py +89 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/__init__.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/__init__.py +0 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/analysis.py +285 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/dynamic_analyzer.py +316 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/environment.py +698 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py +168 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/frida_scripts.py +65 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/frida_server_download.py +75 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/operations.py +299 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/report.py +179 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/tests_common.py +212 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/tests_frida.py +339 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/tests_tls.py +109 -0
- package/MobSF/mobsf/DynamicAnalyzer/views/android/tests_xposed.py +194 -0
- package/MobSF/mobsf/MalwareAnalyzer/__init__.py +0 -0
- package/MobSF/mobsf/MalwareAnalyzer/admin.py +0 -0
- package/MobSF/mobsf/MalwareAnalyzer/models.py +0 -0
- package/MobSF/mobsf/MalwareAnalyzer/tests.py +0 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/MalwareDomainCheck.py +226 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/Trackers.py +237 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/VirusTotal.py +140 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/__init__.py +0 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/apkid.py +61 -0
- package/MobSF/mobsf/MalwareAnalyzer/views/quark.py +145 -0
- package/MobSF/mobsf/MobSF/__init__.py +0 -0
- package/MobSF/mobsf/MobSF/forms.py +36 -0
- package/MobSF/mobsf/MobSF/init.py +143 -0
- package/MobSF/mobsf/MobSF/models.py +0 -0
- package/MobSF/mobsf/MobSF/settings.py +411 -0
- package/MobSF/mobsf/MobSF/urls.py +145 -0
- package/MobSF/mobsf/MobSF/utils.py +598 -0
- package/MobSF/mobsf/MobSF/views/__init__.py +0 -0
- package/MobSF/mobsf/MobSF/views/api/__init__.py +0 -0
- package/MobSF/mobsf/MobSF/views/api/api_dynamic_analysis.py +278 -0
- package/MobSF/mobsf/MobSF/views/api/api_middleware.py +47 -0
- package/MobSF/mobsf/MobSF/views/api/api_static_analysis.py +186 -0
- package/MobSF/mobsf/MobSF/views/apk_downloader.py +163 -0
- package/MobSF/mobsf/MobSF/views/helpers.py +94 -0
- package/MobSF/mobsf/MobSF/views/home.py +350 -0
- package/MobSF/mobsf/MobSF/views/scanning.py +149 -0
- package/MobSF/mobsf/MobSF/wsgi.py +24 -0
- package/MobSF/mobsf/StaticAnalyzer/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/admin.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/forms.py +92 -0
- package/MobSF/mobsf/StaticAnalyzer/models.py +123 -0
- package/MobSF/mobsf/StaticAnalyzer/tests.py +425 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/apktool_2.5.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/baksmali-2.5.2.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/ios/class-dump +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/ios/class-dump-swift +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/ios/jtool.ELF64 +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/LICENSE +201 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/NOTICE +213 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/README.md +125 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/bin/jadx +185 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/bin/jadx-gui +185 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/bin/jadx-gui.bat +89 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/bin/jadx.bat +89 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/android-29-clst.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/android-29-res.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/antlr-2.7.7.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/antlr-runtime-3.5.2.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/apksig-4.0.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/asm-8.0.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/baksmali-2.4.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/checker-qual-2.11.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/commons-lang3-3.11.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/commons-text-1.9.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/dexlib2-2.4.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/dx-1.16.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/error_prone_annotations-2.3.4.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/failureaccess-1.0.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/gson-2.8.6.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/guava-29.0-jre.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/image-viewer-1.2.3.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/j2objc-annotations-1.3.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-cli-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-core-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-dex-input-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-gui-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-java-convert-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-plugins-api-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jadx-smali-input-1.2.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jcommander-1.80.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jfontchooser-1.0.5.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/jsr305-3.0.2.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/logback-classic-1.2.3.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/logback-core-1.2.3.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/reactive-streams-1.0.3.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/rsyntaxtextarea-3.1.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/rxjava-2.2.19.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/rxjava2-swing-0.3.7.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/slf4j-api-1.7.30.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/smali-2.4.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/stringtemplate-3.2.1.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/jadx/lib/util-2.4.0.jar +0 -0
- package/MobSF/mobsf/StaticAnalyzer/tools/strings.py +24 -0
- package/MobSF/mobsf/StaticAnalyzer/views/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/android_manifest_desc.py +747 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/binary_analysis.py +255 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/cert_analysis.py +160 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/code_analysis.py +96 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/converter.py +97 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/db_interaction.py +217 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/dvm_permissions.py +278 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/find.py +75 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/generate_downloads.py +53 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/icon_analysis.py +134 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/manifest_analysis.py +908 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/manifest_view.py +64 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/network_security.py +243 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/playstore.py +76 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/rules/android_apis.yaml +425 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/rules/android_niap.yaml +356 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/rules/android_rules.yaml +683 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/source_tree.py +79 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/static_analyzer.py +660 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/strings.py +64 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/view_source.py +78 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/win_fixes.py +53 -0
- package/MobSF/mobsf/StaticAnalyzer/views/android/xapk.py +57 -0
- package/MobSF/mobsf/StaticAnalyzer/views/comparer.py +234 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/app_transport_security.py +222 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/appstore.py +54 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/binary_analysis.py +119 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/binary_rule_matcher.py +58 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/classdump.py +112 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/code_analysis.py +103 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/db_interaction.py +177 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/file_analysis.py +85 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/file_recon.py +63 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/icon_analysis.py +73 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/macho_analysis.py +255 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/permission_analysis.py +90 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/plist_analysis.py +150 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/rules/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/rules/ios_apis.yaml +85 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/rules/ipa_rules.py +226 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/rules/objective_c_rules.yaml +355 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/rules/swift_rules.yaml +461 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/static_analyzer.py +282 -0
- package/MobSF/mobsf/StaticAnalyzer/views/ios/view_source.py +155 -0
- package/MobSF/mobsf/StaticAnalyzer/views/sast_engine.py +71 -0
- package/MobSF/mobsf/StaticAnalyzer/views/shared_func.py +424 -0
- package/MobSF/mobsf/StaticAnalyzer/views/windows/__init__.py +0 -0
- package/MobSF/mobsf/StaticAnalyzer/views/windows/db_interaction.py +130 -0
- package/MobSF/mobsf/StaticAnalyzer/views/windows/windows.py +590 -0
- package/MobSF/mobsf/__init__.py +0 -0
- package/MobSF/mobsf/__main__.py +49 -0
- package/MobSF/mobsf/install/__init__.py +0 -0
- package/MobSF/mobsf/install/windows/__init__.py +0 -0
- package/MobSF/mobsf/install/windows/config.txt +26 -0
- package/MobSF/mobsf/install/windows/readme.md +43 -0
- package/MobSF/mobsf/install/windows/rpc_client.py +191 -0
- package/MobSF/mobsf/install/windows/setup.py +433 -0
- package/MobSF/mobsf/signatures/IP2LOCATION-LITE-DB5.IPV6.BIN +0 -0
- package/MobSF/mobsf/signatures/exodus_trackers +1 -0
- package/MobSF/mobsf/signatures/maltrail-malware-domains.txt +157958 -0
- package/MobSF/mobsf/signatures/malwaredomainlist +2256 -0
- package/MobSF/mobsf/static/adminlte/dashboard/css/adminlte.min.css +12 -0
- package/MobSF/mobsf/static/adminlte/dashboard/css/adminlte.min.css.map +1 -0
- package/MobSF/mobsf/static/adminlte/dashboard/js/adminlte.min.js +7 -0
- package/MobSF/mobsf/static/adminlte/dashboard/js/adminlte.min.js.map +1 -0
- package/MobSF/mobsf/static/adminlte/plugins/bootstrap/bootstrap.bundle.min.js +7 -0
- package/MobSF/mobsf/static/adminlte/plugins/bootstrap/bootstrap.bundle.min.js.map +1 -0
- package/MobSF/mobsf/static/adminlte/plugins/datatables/jquery.dataTables.min.js +166 -0
- package/MobSF/mobsf/static/adminlte/plugins/datatables-bs4/dataTables.bootstrap4.min.css +1 -0
- package/MobSF/mobsf/static/adminlte/plugins/datatables-bs4/dataTables.bootstrap4.min.js +8 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/all.css +4423 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/all.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/brands.css +14 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/brands.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/fontawesome.css +4390 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/fontawesome.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/regular.css +15 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/regular.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/solid.css +16 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/solid.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/svg-with-js.css +371 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/svg-with-js.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/v4-shims.css +2166 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/css/v4-shims.min.css +5 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-brands-400.svg +3496 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-regular-400.svg +803 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-solid-900.svg +4667 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/MobSF/mobsf/static/adminlte/plugins/jquery-ui.min.js +13 -0
- package/MobSF/mobsf/static/adminlte/plugins/jquery.min.js +2 -0
- package/MobSF/mobsf/static/adminlte/plugins/overlayScrollbars/css/OverlayScrollbars.min.css +13 -0
- package/MobSF/mobsf/static/adminlte/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js +13 -0
- package/MobSF/mobsf/static/adminlte/plugins/sweetalert2/sweetalert2.min.css +1 -0
- package/MobSF/mobsf/static/adminlte/plugins/sweetalert2/sweetalert2.min.js +1 -0
- package/MobSF/mobsf/static/amcharts/animated.js +1 -0
- package/MobSF/mobsf/static/amcharts/core.js +1 -0
- package/MobSF/mobsf/static/amcharts/maps.js +1 -0
- package/MobSF/mobsf/static/amcharts/worldIndiaLow.js +20 -0
- package/MobSF/mobsf/static/codemirror/codemirror.css +350 -0
- package/MobSF/mobsf/static/codemirror/codemirror.js +9803 -0
- package/MobSF/mobsf/static/codemirror/javascript-lint.js +65 -0
- package/MobSF/mobsf/static/codemirror/javascript.js +945 -0
- package/MobSF/mobsf/static/codemirror/jshint.js +29591 -0
- package/MobSF/mobsf/static/codemirror/lint.css +71 -0
- package/MobSF/mobsf/static/codemirror/lint.js +259 -0
- package/MobSF/mobsf/static/enlighterjs/enlighterjs.enlighter.min.css +3 -0
- package/MobSF/mobsf/static/enlighterjs/enlighterjs.min.css +15 -0
- package/MobSF/mobsf/static/enlighterjs/enlighterjs.min.js +3 -0
- package/MobSF/mobsf/static/fonts/Open_Sans/LICENSE.txt +202 -0
- package/MobSF/mobsf/static/fonts/Open_Sans/OpenSans-Regular.ttf +0 -0
- package/MobSF/mobsf/static/fonts/Oswald/OFL.txt +93 -0
- package/MobSF/mobsf/static/fonts/Oswald/Oswald-Regular.ttf +0 -0
- package/MobSF/mobsf/static/img/favicon.ico +0 -0
- package/MobSF/mobsf/static/img/loading.jpg +0 -0
- package/MobSF/mobsf/static/img/mobsf_icon.png +0 -0
- package/MobSF/mobsf/static/img/mobsf_logo.png +0 -0
- package/MobSF/mobsf/static/img/no_icon.png +0 -0
- package/MobSF/mobsf/static/jsTree/custom.css +114 -0
- package/MobSF/mobsf/static/jsTree/jstree.min.js +6 -0
- package/MobSF/mobsf/static/jsTree/themes/default/32px.png +0 -0
- package/MobSF/mobsf/static/jsTree/themes/default/40px.png +0 -0
- package/MobSF/mobsf/static/jsTree/themes/default/content_background.gif +0 -0
- package/MobSF/mobsf/static/jsTree/themes/default/dir.gif +0 -0
- package/MobSF/mobsf/static/jsTree/themes/default/file.png +0 -0
- package/MobSF/mobsf/static/jsTree/themes/default/style.min.css +1 -0
- package/MobSF/mobsf/static/jsTree/themes/default/throbber.gif +0 -0
- package/MobSF/mobsf/static/landing/css/home.css +310 -0
- package/MobSF/mobsf/static/others/css/devices.min.css +1 -0
- package/MobSF/mobsf/static/others/css/pdf_report.css +123 -0
- package/MobSF/mobsf/static/others/css/spinner.css +168 -0
- package/MobSF/mobsf/static/others/css/terminal.css +79 -0
- package/MobSF/mobsf/static/others/css/xcode.min.css +1 -0
- package/MobSF/mobsf/static/terminal/terminal.css +79 -0
- package/MobSF/mobsf/templates/base/base_layout.html +123 -0
- package/MobSF/mobsf/templates/dynamic_analysis/android/dynamic_analyzer.html +1064 -0
- package/MobSF/mobsf/templates/dynamic_analysis/android/dynamic_report.html +1017 -0
- package/MobSF/mobsf/templates/dynamic_analysis/android/frida_logs.html +48 -0
- package/MobSF/mobsf/templates/dynamic_analysis/android/live_api.html +103 -0
- package/MobSF/mobsf/templates/dynamic_analysis/android/logcat.html +56 -0
- package/MobSF/mobsf/templates/dynamic_analysis/dynamic_analysis.html +328 -0
- package/MobSF/mobsf/templates/general/about.html +30 -0
- package/MobSF/mobsf/templates/general/apidocs.html +2201 -0
- package/MobSF/mobsf/templates/general/error.html +23 -0
- package/MobSF/mobsf/templates/general/home.html +298 -0
- package/MobSF/mobsf/templates/general/not_found.html +22 -0
- package/MobSF/mobsf/templates/general/recent.html +254 -0
- package/MobSF/mobsf/templates/general/search.html +35 -0
- package/MobSF/mobsf/templates/general/view.html +124 -0
- package/MobSF/mobsf/templates/general/zip.html +31 -0
- package/MobSF/mobsf/templates/pdf/android_report.html +930 -0
- package/MobSF/mobsf/templates/pdf/ios_report.html +760 -0
- package/MobSF/mobsf/templates/pdf/windows_report.html +211 -0
- package/MobSF/mobsf/templates/static_analysis/android_binary_analysis.html +2006 -0
- package/MobSF/mobsf/templates/static_analysis/android_source_analysis.html +1502 -0
- package/MobSF/mobsf/templates/static_analysis/compare.html +917 -0
- package/MobSF/mobsf/templates/static_analysis/ios_binary_analysis.html +1299 -0
- package/MobSF/mobsf/templates/static_analysis/ios_source_analysis.html +1125 -0
- package/MobSF/mobsf/templates/static_analysis/source_tree.html +332 -0
- package/MobSF/mobsf/templates/static_analysis/treeview_file.html +1 -0
- package/MobSF/mobsf/templates/static_analysis/treeview_folder.html +5 -0
- package/MobSF/mobsf/templates/static_analysis/windows_binary_analysis.html +411 -0
- package/MobSF/requirements.txt +30 -0
- package/MobSF/run.bat +19 -0
- package/MobSF/run.sh +48 -0
- package/MobSF/scripts/__init__.py +0 -0
- package/MobSF/scripts/check_install.py +28 -0
- package/MobSF/scripts/clean.bat +31 -0
- package/MobSF/scripts/clean.sh +43 -0
- package/MobSF/scripts/entrypoint.sh +8 -0
- package/MobSF/scripts/install_java_wkhtmltopdf.sh +33 -0
- package/MobSF/scripts/mass_static_analysis.py +95 -0
- package/MobSF/scripts/postgres_support.sh +11 -0
- package/MobSF/scripts/stack/docker-compose.yml +15 -0
- package/MobSF/scripts/update_android_permissions.py +46 -0
- package/MobSF/setup.bat +81 -0
- package/MobSF/setup.py +61 -0
- package/MobSF/setup.sh +76 -0
- package/MobSF/tox.ini +94 -0
- package/Notes/AWS Security.pdf +0 -0
- package/Notes/Android Security.pdf +0 -0
- package/Notes/Web Security.pdf +0 -0
- package/Screenshot 2022-03-10 at 11.57.37 AM.png +0 -0
- package/Security Bug Demo.mov +0 -0
- package/Security Review.mov +0 -0
- package/Templates/CRLF.txt +61 -0
- package/Templates/cors.html +26 -0
- package/Templates/openredirect.txt +860 -0
- package/Templates/secrets.py +102 -0
- package/Templates/vhost.txt +174 -0
- package/Templates/wordlist.txt +6038 -0
- package/Templates/xss.txt +2691 -0
- package/cloneall.sh +26 -0
- package/index.js +46 -0
- package/meesecops/.dockerignore +6 -0
- package/meesecops/Dockerfile +15 -0
- package/meesecops/LICENSE +201 -0
- package/meesecops/README.md +2 -0
- package/meesecops/README_secops.md +206 -0
- package/meesecops/Workflows/1-factor.png +0 -0
- package/meesecops/Workflows/2-factor.png +0 -0
- package/meesecops/__init__.py +0 -0
- package/meesecops/application/__init__.py +23 -0
- package/meesecops/application/jira_functions.py +554 -0
- package/meesecops/application/static/css/close_style.css +151 -0
- package/meesecops/application/static/css/style.css +358 -0
- package/meesecops/application/static/external/1.16.0.popper.min.js +5 -0
- package/meesecops/application/static/external/bootstrap.min.css +5 -0
- package/meesecops/application/static/external/bootstrap.min.js +7 -0
- package/meesecops/application/static/external/css.css +48 -0
- package/meesecops/application/static/external/index.js +607 -0
- package/meesecops/application/static/external/jquery-1.12.4.js +11008 -0
- package/meesecops/application/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/meesecops/application/static/fonts/hacked.woff +0 -0
- package/meesecops/application/static/images/ajax-loader.gif +0 -0
- package/meesecops/application/static/images/favicon.png +0 -0
- package/meesecops/application/static/images/glogin.png +0 -0
- package/meesecops/application/static/images/logo3.png +0 -0
- package/meesecops/application/static/images/sort_asc.png +0 -0
- package/meesecops/application/static/images/sort_both.png +0 -0
- package/meesecops/application/static/images/sort_desc.png +0 -0
- package/meesecops/application/static/options.json +62 -0
- package/meesecops/application/static/request_options.json +721 -0
- package/meesecops/application/static/robots.txt +2 -0
- package/meesecops/application/templates/close_tickets.html +261 -0
- package/meesecops/application/templates/footer.html +15 -0
- package/meesecops/application/templates/index.html +337 -0
- package/meesecops/application/templates/login.html +50 -0
- package/meesecops/application/templates/nav.html +63 -0
- package/meesecops/application/templates/new_secreview.html +92 -0
- package/meesecops/application/templates/search_tickets.html +77 -0
- package/meesecops/application/templates/security_updates.html +82 -0
- package/meesecops/application/views.py +536 -0
- package/meesecops/config.py +206 -0
- package/meesecops/logs/README.txt +1 -0
- package/meesecops/logs/access_log +0 -0
- package/meesecops/requirements.txt +32 -0
- package/meesecops/run.py +100 -0
- package/meesecops/screenshot/1.png +0 -0
- package/meesecops/screenshot/2.png +0 -0
- package/meesecops/screenshot/3.png +0 -0
- package/meesecops/screenshot/4-1.png +0 -0
- package/meesecops/screenshot/4.png +0 -0
- package/meesecops/screenshot/5.png +0 -0
- package/meesecops/screenshot/6.png +0 -0
- package/meesecops/screenshot/7.png +0 -0
- package/meesecops/ssl/README.txt +1 -0
- package/package.json +11 -0
- package/prod.pem +27 -0
- package/test1.py +133 -0
@@ -0,0 +1,945 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
15
|
+
var indentUnit = config.indentUnit;
|
16
|
+
var statementIndent = parserConfig.statementIndent;
|
17
|
+
var jsonldMode = parserConfig.jsonld;
|
18
|
+
var jsonMode = parserConfig.json || jsonldMode;
|
19
|
+
var trackScope = parserConfig.trackScope !== false
|
20
|
+
var isTS = parserConfig.typescript;
|
21
|
+
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
22
|
+
|
23
|
+
// Tokenizer
|
24
|
+
|
25
|
+
var keywords = function(){
|
26
|
+
function kw(type) {return {type: type, style: "keyword"};}
|
27
|
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
|
28
|
+
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
29
|
+
|
30
|
+
return {
|
31
|
+
"if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
32
|
+
"return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
|
33
|
+
"debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
|
34
|
+
"function": kw("function"), "catch": kw("catch"),
|
35
|
+
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
36
|
+
"in": operator, "typeof": operator, "instanceof": operator,
|
37
|
+
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
|
38
|
+
"this": kw("this"), "class": kw("class"), "super": kw("atom"),
|
39
|
+
"yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
|
40
|
+
"await": C
|
41
|
+
};
|
42
|
+
}();
|
43
|
+
|
44
|
+
var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
|
45
|
+
var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
46
|
+
|
47
|
+
function readRegexp(stream) {
|
48
|
+
var escaped = false, next, inSet = false;
|
49
|
+
while ((next = stream.next()) != null) {
|
50
|
+
if (!escaped) {
|
51
|
+
if (next == "/" && !inSet) return;
|
52
|
+
if (next == "[") inSet = true;
|
53
|
+
else if (inSet && next == "]") inSet = false;
|
54
|
+
}
|
55
|
+
escaped = !escaped && next == "\\";
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Used as scratch variables to communicate multiple values without
|
60
|
+
// consing up tons of objects.
|
61
|
+
var type, content;
|
62
|
+
function ret(tp, style, cont) {
|
63
|
+
type = tp; content = cont;
|
64
|
+
return style;
|
65
|
+
}
|
66
|
+
function tokenBase(stream, state) {
|
67
|
+
var ch = stream.next();
|
68
|
+
if (ch == '"' || ch == "'") {
|
69
|
+
state.tokenize = tokenString(ch);
|
70
|
+
return state.tokenize(stream, state);
|
71
|
+
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
72
|
+
return ret("number", "number");
|
73
|
+
} else if (ch == "." && stream.match("..")) {
|
74
|
+
return ret("spread", "meta");
|
75
|
+
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
76
|
+
return ret(ch);
|
77
|
+
} else if (ch == "=" && stream.eat(">")) {
|
78
|
+
return ret("=>", "operator");
|
79
|
+
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
80
|
+
return ret("number", "number");
|
81
|
+
} else if (/\d/.test(ch)) {
|
82
|
+
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
83
|
+
return ret("number", "number");
|
84
|
+
} else if (ch == "/") {
|
85
|
+
if (stream.eat("*")) {
|
86
|
+
state.tokenize = tokenComment;
|
87
|
+
return tokenComment(stream, state);
|
88
|
+
} else if (stream.eat("/")) {
|
89
|
+
stream.skipToEnd();
|
90
|
+
return ret("comment", "comment");
|
91
|
+
} else if (expressionAllowed(stream, state, 1)) {
|
92
|
+
readRegexp(stream);
|
93
|
+
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
94
|
+
return ret("regexp", "string-2");
|
95
|
+
} else {
|
96
|
+
stream.eat("=");
|
97
|
+
return ret("operator", "operator", stream.current());
|
98
|
+
}
|
99
|
+
} else if (ch == "`") {
|
100
|
+
state.tokenize = tokenQuasi;
|
101
|
+
return tokenQuasi(stream, state);
|
102
|
+
} else if (ch == "#" && stream.peek() == "!") {
|
103
|
+
stream.skipToEnd();
|
104
|
+
return ret("meta", "meta");
|
105
|
+
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
106
|
+
return ret("variable", "property")
|
107
|
+
} else if (ch == "<" && stream.match("!--") ||
|
108
|
+
(ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
|
109
|
+
stream.skipToEnd()
|
110
|
+
return ret("comment", "comment")
|
111
|
+
} else if (isOperatorChar.test(ch)) {
|
112
|
+
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
113
|
+
if (stream.eat("=")) {
|
114
|
+
if (ch == "!" || ch == "=") stream.eat("=")
|
115
|
+
} else if (/[<>*+\-|&?]/.test(ch)) {
|
116
|
+
stream.eat(ch)
|
117
|
+
if (ch == ">") stream.eat(ch)
|
118
|
+
}
|
119
|
+
}
|
120
|
+
if (ch == "?" && stream.eat(".")) return ret(".")
|
121
|
+
return ret("operator", "operator", stream.current());
|
122
|
+
} else if (wordRE.test(ch)) {
|
123
|
+
stream.eatWhile(wordRE);
|
124
|
+
var word = stream.current()
|
125
|
+
if (state.lastType != ".") {
|
126
|
+
if (keywords.propertyIsEnumerable(word)) {
|
127
|
+
var kw = keywords[word]
|
128
|
+
return ret(kw.type, kw.style, word)
|
129
|
+
}
|
130
|
+
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
131
|
+
return ret("async", "keyword", word)
|
132
|
+
}
|
133
|
+
return ret("variable", "variable", word)
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
function tokenString(quote) {
|
138
|
+
return function(stream, state) {
|
139
|
+
var escaped = false, next;
|
140
|
+
if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
|
141
|
+
state.tokenize = tokenBase;
|
142
|
+
return ret("jsonld-keyword", "meta");
|
143
|
+
}
|
144
|
+
while ((next = stream.next()) != null) {
|
145
|
+
if (next == quote && !escaped) break;
|
146
|
+
escaped = !escaped && next == "\\";
|
147
|
+
}
|
148
|
+
if (!escaped) state.tokenize = tokenBase;
|
149
|
+
return ret("string", "string");
|
150
|
+
};
|
151
|
+
}
|
152
|
+
|
153
|
+
function tokenComment(stream, state) {
|
154
|
+
var maybeEnd = false, ch;
|
155
|
+
while (ch = stream.next()) {
|
156
|
+
if (ch == "/" && maybeEnd) {
|
157
|
+
state.tokenize = tokenBase;
|
158
|
+
break;
|
159
|
+
}
|
160
|
+
maybeEnd = (ch == "*");
|
161
|
+
}
|
162
|
+
return ret("comment", "comment");
|
163
|
+
}
|
164
|
+
|
165
|
+
function tokenQuasi(stream, state) {
|
166
|
+
var escaped = false, next;
|
167
|
+
while ((next = stream.next()) != null) {
|
168
|
+
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
169
|
+
state.tokenize = tokenBase;
|
170
|
+
break;
|
171
|
+
}
|
172
|
+
escaped = !escaped && next == "\\";
|
173
|
+
}
|
174
|
+
return ret("quasi", "string-2", stream.current());
|
175
|
+
}
|
176
|
+
|
177
|
+
var brackets = "([{}])";
|
178
|
+
// This is a crude lookahead trick to try and notice that we're
|
179
|
+
// parsing the argument patterns for a fat-arrow function before we
|
180
|
+
// actually hit the arrow token. It only works if the arrow is on
|
181
|
+
// the same line as the arguments and there's no strange noise
|
182
|
+
// (comments) in between. Fallback is to only notice when we hit the
|
183
|
+
// arrow, and not declare the arguments as locals for the arrow
|
184
|
+
// body.
|
185
|
+
function findFatArrow(stream, state) {
|
186
|
+
if (state.fatArrowAt) state.fatArrowAt = null;
|
187
|
+
var arrow = stream.string.indexOf("=>", stream.start);
|
188
|
+
if (arrow < 0) return;
|
189
|
+
|
190
|
+
if (isTS) { // Try to skip TypeScript return type declarations after the arguments
|
191
|
+
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow))
|
192
|
+
if (m) arrow = m.index
|
193
|
+
}
|
194
|
+
|
195
|
+
var depth = 0, sawSomething = false;
|
196
|
+
for (var pos = arrow - 1; pos >= 0; --pos) {
|
197
|
+
var ch = stream.string.charAt(pos);
|
198
|
+
var bracket = brackets.indexOf(ch);
|
199
|
+
if (bracket >= 0 && bracket < 3) {
|
200
|
+
if (!depth) { ++pos; break; }
|
201
|
+
if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
|
202
|
+
} else if (bracket >= 3 && bracket < 6) {
|
203
|
+
++depth;
|
204
|
+
} else if (wordRE.test(ch)) {
|
205
|
+
sawSomething = true;
|
206
|
+
} else if (/["'\/`]/.test(ch)) {
|
207
|
+
for (;; --pos) {
|
208
|
+
if (pos == 0) return
|
209
|
+
var next = stream.string.charAt(pos - 1)
|
210
|
+
if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
|
211
|
+
}
|
212
|
+
} else if (sawSomething && !depth) {
|
213
|
+
++pos;
|
214
|
+
break;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
if (sawSomething && !depth) state.fatArrowAt = pos;
|
218
|
+
}
|
219
|
+
|
220
|
+
// Parser
|
221
|
+
|
222
|
+
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
|
223
|
+
"regexp": true, "this": true, "import": true, "jsonld-keyword": true};
|
224
|
+
|
225
|
+
function JSLexical(indented, column, type, align, prev, info) {
|
226
|
+
this.indented = indented;
|
227
|
+
this.column = column;
|
228
|
+
this.type = type;
|
229
|
+
this.prev = prev;
|
230
|
+
this.info = info;
|
231
|
+
if (align != null) this.align = align;
|
232
|
+
}
|
233
|
+
|
234
|
+
function inScope(state, varname) {
|
235
|
+
if (!trackScope) return false
|
236
|
+
for (var v = state.localVars; v; v = v.next)
|
237
|
+
if (v.name == varname) return true;
|
238
|
+
for (var cx = state.context; cx; cx = cx.prev) {
|
239
|
+
for (var v = cx.vars; v; v = v.next)
|
240
|
+
if (v.name == varname) return true;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
function parseJS(state, style, type, content, stream) {
|
245
|
+
var cc = state.cc;
|
246
|
+
// Communicate our context to the combinators.
|
247
|
+
// (Less wasteful than consing up a hundred closures on every call.)
|
248
|
+
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style;
|
249
|
+
|
250
|
+
if (!state.lexical.hasOwnProperty("align"))
|
251
|
+
state.lexical.align = true;
|
252
|
+
|
253
|
+
while(true) {
|
254
|
+
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
255
|
+
if (combinator(type, content)) {
|
256
|
+
while(cc.length && cc[cc.length - 1].lex)
|
257
|
+
cc.pop()();
|
258
|
+
if (cx.marked) return cx.marked;
|
259
|
+
if (type == "variable" && inScope(state, content)) return "variable-2";
|
260
|
+
return style;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
// Combinator utils
|
266
|
+
|
267
|
+
var cx = {state: null, column: null, marked: null, cc: null};
|
268
|
+
function pass() {
|
269
|
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
270
|
+
}
|
271
|
+
function cont() {
|
272
|
+
pass.apply(null, arguments);
|
273
|
+
return true;
|
274
|
+
}
|
275
|
+
function inList(name, list) {
|
276
|
+
for (var v = list; v; v = v.next) if (v.name == name) return true
|
277
|
+
return false;
|
278
|
+
}
|
279
|
+
function register(varname) {
|
280
|
+
var state = cx.state;
|
281
|
+
cx.marked = "def";
|
282
|
+
if (!trackScope) return
|
283
|
+
if (state.context) {
|
284
|
+
if (state.lexical.info == "var" && state.context && state.context.block) {
|
285
|
+
// FIXME function decls are also not block scoped
|
286
|
+
var newContext = registerVarScoped(varname, state.context)
|
287
|
+
if (newContext != null) {
|
288
|
+
state.context = newContext
|
289
|
+
return
|
290
|
+
}
|
291
|
+
} else if (!inList(varname, state.localVars)) {
|
292
|
+
state.localVars = new Var(varname, state.localVars)
|
293
|
+
return
|
294
|
+
}
|
295
|
+
}
|
296
|
+
// Fall through means this is global
|
297
|
+
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
298
|
+
state.globalVars = new Var(varname, state.globalVars)
|
299
|
+
}
|
300
|
+
function registerVarScoped(varname, context) {
|
301
|
+
if (!context) {
|
302
|
+
return null
|
303
|
+
} else if (context.block) {
|
304
|
+
var inner = registerVarScoped(varname, context.prev)
|
305
|
+
if (!inner) return null
|
306
|
+
if (inner == context.prev) return context
|
307
|
+
return new Context(inner, context.vars, true)
|
308
|
+
} else if (inList(varname, context.vars)) {
|
309
|
+
return context
|
310
|
+
} else {
|
311
|
+
return new Context(context.prev, new Var(varname, context.vars), false)
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
function isModifier(name) {
|
316
|
+
return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
|
317
|
+
}
|
318
|
+
|
319
|
+
// Combinators
|
320
|
+
|
321
|
+
function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block }
|
322
|
+
function Var(name, next) { this.name = name; this.next = next }
|
323
|
+
|
324
|
+
var defaultVars = new Var("this", new Var("arguments", null))
|
325
|
+
function pushcontext() {
|
326
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, false)
|
327
|
+
cx.state.localVars = defaultVars
|
328
|
+
}
|
329
|
+
function pushblockcontext() {
|
330
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, true)
|
331
|
+
cx.state.localVars = null
|
332
|
+
}
|
333
|
+
function popcontext() {
|
334
|
+
cx.state.localVars = cx.state.context.vars
|
335
|
+
cx.state.context = cx.state.context.prev
|
336
|
+
}
|
337
|
+
popcontext.lex = true
|
338
|
+
function pushlex(type, info) {
|
339
|
+
var result = function() {
|
340
|
+
var state = cx.state, indent = state.indented;
|
341
|
+
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
342
|
+
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
343
|
+
indent = outer.indented;
|
344
|
+
state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
|
345
|
+
};
|
346
|
+
result.lex = true;
|
347
|
+
return result;
|
348
|
+
}
|
349
|
+
function poplex() {
|
350
|
+
var state = cx.state;
|
351
|
+
if (state.lexical.prev) {
|
352
|
+
if (state.lexical.type == ")")
|
353
|
+
state.indented = state.lexical.indented;
|
354
|
+
state.lexical = state.lexical.prev;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
poplex.lex = true;
|
358
|
+
|
359
|
+
function expect(wanted) {
|
360
|
+
function exp(type) {
|
361
|
+
if (type == wanted) return cont();
|
362
|
+
else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
|
363
|
+
else return cont(exp);
|
364
|
+
};
|
365
|
+
return exp;
|
366
|
+
}
|
367
|
+
|
368
|
+
function statement(type, value) {
|
369
|
+
if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
370
|
+
if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
371
|
+
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
372
|
+
if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
373
|
+
if (type == "debugger") return cont(expect(";"));
|
374
|
+
if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
375
|
+
if (type == ";") return cont();
|
376
|
+
if (type == "if") {
|
377
|
+
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
378
|
+
cx.state.cc.pop()();
|
379
|
+
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
380
|
+
}
|
381
|
+
if (type == "function") return cont(functiondef);
|
382
|
+
if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
383
|
+
if (type == "class" || (isTS && value == "interface")) {
|
384
|
+
cx.marked = "keyword"
|
385
|
+
return cont(pushlex("form", type == "class" ? type : value), className, poplex)
|
386
|
+
}
|
387
|
+
if (type == "variable") {
|
388
|
+
if (isTS && value == "declare") {
|
389
|
+
cx.marked = "keyword"
|
390
|
+
return cont(statement)
|
391
|
+
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
392
|
+
cx.marked = "keyword"
|
393
|
+
if (value == "enum") return cont(enumdef);
|
394
|
+
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
395
|
+
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
|
396
|
+
} else if (isTS && value == "namespace") {
|
397
|
+
cx.marked = "keyword"
|
398
|
+
return cont(pushlex("form"), expression, statement, poplex)
|
399
|
+
} else if (isTS && value == "abstract") {
|
400
|
+
cx.marked = "keyword"
|
401
|
+
return cont(statement)
|
402
|
+
} else {
|
403
|
+
return cont(pushlex("stat"), maybelabel);
|
404
|
+
}
|
405
|
+
}
|
406
|
+
if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
|
407
|
+
block, poplex, poplex, popcontext);
|
408
|
+
if (type == "case") return cont(expression, expect(":"));
|
409
|
+
if (type == "default") return cont(expect(":"));
|
410
|
+
if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
411
|
+
if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
|
412
|
+
if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
|
413
|
+
if (type == "async") return cont(statement)
|
414
|
+
if (value == "@") return cont(expression, statement)
|
415
|
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
416
|
+
}
|
417
|
+
function maybeCatchBinding(type) {
|
418
|
+
if (type == "(") return cont(funarg, expect(")"))
|
419
|
+
}
|
420
|
+
function expression(type, value) {
|
421
|
+
return expressionInner(type, value, false);
|
422
|
+
}
|
423
|
+
function expressionNoComma(type, value) {
|
424
|
+
return expressionInner(type, value, true);
|
425
|
+
}
|
426
|
+
function parenExpr(type) {
|
427
|
+
if (type != "(") return pass()
|
428
|
+
return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
|
429
|
+
}
|
430
|
+
function expressionInner(type, value, noComma) {
|
431
|
+
if (cx.state.fatArrowAt == cx.stream.start) {
|
432
|
+
var body = noComma ? arrowBodyNoComma : arrowBody;
|
433
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
434
|
+
else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
435
|
+
}
|
436
|
+
|
437
|
+
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
438
|
+
if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
|
439
|
+
if (type == "function") return cont(functiondef, maybeop);
|
440
|
+
if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
|
441
|
+
if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
|
442
|
+
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
443
|
+
if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
|
444
|
+
if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
445
|
+
if (type == "{") return contCommasep(objprop, "}", null, maybeop);
|
446
|
+
if (type == "quasi") return pass(quasi, maybeop);
|
447
|
+
if (type == "new") return cont(maybeTarget(noComma));
|
448
|
+
return cont();
|
449
|
+
}
|
450
|
+
function maybeexpression(type) {
|
451
|
+
if (type.match(/[;\}\)\],]/)) return pass();
|
452
|
+
return pass(expression);
|
453
|
+
}
|
454
|
+
|
455
|
+
function maybeoperatorComma(type, value) {
|
456
|
+
if (type == ",") return cont(maybeexpression);
|
457
|
+
return maybeoperatorNoComma(type, value, false);
|
458
|
+
}
|
459
|
+
function maybeoperatorNoComma(type, value, noComma) {
|
460
|
+
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
461
|
+
var expr = noComma == false ? expression : expressionNoComma;
|
462
|
+
if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
463
|
+
if (type == "operator") {
|
464
|
+
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
465
|
+
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
466
|
+
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
467
|
+
if (value == "?") return cont(expression, expect(":"), expr);
|
468
|
+
return cont(expr);
|
469
|
+
}
|
470
|
+
if (type == "quasi") { return pass(quasi, me); }
|
471
|
+
if (type == ";") return;
|
472
|
+
if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
473
|
+
if (type == ".") return cont(property, me);
|
474
|
+
if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
475
|
+
if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
|
476
|
+
if (type == "regexp") {
|
477
|
+
cx.state.lastType = cx.marked = "operator"
|
478
|
+
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1)
|
479
|
+
return cont(expr)
|
480
|
+
}
|
481
|
+
}
|
482
|
+
function quasi(type, value) {
|
483
|
+
if (type != "quasi") return pass();
|
484
|
+
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
485
|
+
return cont(expression, continueQuasi);
|
486
|
+
}
|
487
|
+
function continueQuasi(type) {
|
488
|
+
if (type == "}") {
|
489
|
+
cx.marked = "string-2";
|
490
|
+
cx.state.tokenize = tokenQuasi;
|
491
|
+
return cont(quasi);
|
492
|
+
}
|
493
|
+
}
|
494
|
+
function arrowBody(type) {
|
495
|
+
findFatArrow(cx.stream, cx.state);
|
496
|
+
return pass(type == "{" ? statement : expression);
|
497
|
+
}
|
498
|
+
function arrowBodyNoComma(type) {
|
499
|
+
findFatArrow(cx.stream, cx.state);
|
500
|
+
return pass(type == "{" ? statement : expressionNoComma);
|
501
|
+
}
|
502
|
+
function maybeTarget(noComma) {
|
503
|
+
return function(type) {
|
504
|
+
if (type == ".") return cont(noComma ? targetNoComma : target);
|
505
|
+
else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
|
506
|
+
else return pass(noComma ? expressionNoComma : expression);
|
507
|
+
};
|
508
|
+
}
|
509
|
+
function target(_, value) {
|
510
|
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
|
511
|
+
}
|
512
|
+
function targetNoComma(_, value) {
|
513
|
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
|
514
|
+
}
|
515
|
+
function maybelabel(type) {
|
516
|
+
if (type == ":") return cont(poplex, statement);
|
517
|
+
return pass(maybeoperatorComma, expect(";"), poplex);
|
518
|
+
}
|
519
|
+
function property(type) {
|
520
|
+
if (type == "variable") {cx.marked = "property"; return cont();}
|
521
|
+
}
|
522
|
+
function objprop(type, value) {
|
523
|
+
if (type == "async") {
|
524
|
+
cx.marked = "property";
|
525
|
+
return cont(objprop);
|
526
|
+
} else if (type == "variable" || cx.style == "keyword") {
|
527
|
+
cx.marked = "property";
|
528
|
+
if (value == "get" || value == "set") return cont(getterSetter);
|
529
|
+
var m // Work around fat-arrow-detection complication for detecting typescript typed arrow params
|
530
|
+
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
531
|
+
cx.state.fatArrowAt = cx.stream.pos + m[0].length
|
532
|
+
return cont(afterprop);
|
533
|
+
} else if (type == "number" || type == "string") {
|
534
|
+
cx.marked = jsonldMode ? "property" : (cx.style + " property");
|
535
|
+
return cont(afterprop);
|
536
|
+
} else if (type == "jsonld-keyword") {
|
537
|
+
return cont(afterprop);
|
538
|
+
} else if (isTS && isModifier(value)) {
|
539
|
+
cx.marked = "keyword"
|
540
|
+
return cont(objprop)
|
541
|
+
} else if (type == "[") {
|
542
|
+
return cont(expression, maybetype, expect("]"), afterprop);
|
543
|
+
} else if (type == "spread") {
|
544
|
+
return cont(expressionNoComma, afterprop);
|
545
|
+
} else if (value == "*") {
|
546
|
+
cx.marked = "keyword";
|
547
|
+
return cont(objprop);
|
548
|
+
} else if (type == ":") {
|
549
|
+
return pass(afterprop)
|
550
|
+
}
|
551
|
+
}
|
552
|
+
function getterSetter(type) {
|
553
|
+
if (type != "variable") return pass(afterprop);
|
554
|
+
cx.marked = "property";
|
555
|
+
return cont(functiondef);
|
556
|
+
}
|
557
|
+
function afterprop(type) {
|
558
|
+
if (type == ":") return cont(expressionNoComma);
|
559
|
+
if (type == "(") return pass(functiondef);
|
560
|
+
}
|
561
|
+
function commasep(what, end, sep) {
|
562
|
+
function proceed(type, value) {
|
563
|
+
if (sep ? sep.indexOf(type) > -1 : type == ",") {
|
564
|
+
var lex = cx.state.lexical;
|
565
|
+
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
566
|
+
return cont(function(type, value) {
|
567
|
+
if (type == end || value == end) return pass()
|
568
|
+
return pass(what)
|
569
|
+
}, proceed);
|
570
|
+
}
|
571
|
+
if (type == end || value == end) return cont();
|
572
|
+
if (sep && sep.indexOf(";") > -1) return pass(what)
|
573
|
+
return cont(expect(end));
|
574
|
+
}
|
575
|
+
return function(type, value) {
|
576
|
+
if (type == end || value == end) return cont();
|
577
|
+
return pass(what, proceed);
|
578
|
+
};
|
579
|
+
}
|
580
|
+
function contCommasep(what, end, info) {
|
581
|
+
for (var i = 3; i < arguments.length; i++)
|
582
|
+
cx.cc.push(arguments[i]);
|
583
|
+
return cont(pushlex(end, info), commasep(what, end), poplex);
|
584
|
+
}
|
585
|
+
function block(type) {
|
586
|
+
if (type == "}") return cont();
|
587
|
+
return pass(statement, block);
|
588
|
+
}
|
589
|
+
function maybetype(type, value) {
|
590
|
+
if (isTS) {
|
591
|
+
if (type == ":") return cont(typeexpr);
|
592
|
+
if (value == "?") return cont(maybetype);
|
593
|
+
}
|
594
|
+
}
|
595
|
+
function maybetypeOrIn(type, value) {
|
596
|
+
if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
|
597
|
+
}
|
598
|
+
function mayberettype(type) {
|
599
|
+
if (isTS && type == ":") {
|
600
|
+
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
|
601
|
+
else return cont(typeexpr)
|
602
|
+
}
|
603
|
+
}
|
604
|
+
function isKW(_, value) {
|
605
|
+
if (value == "is") {
|
606
|
+
cx.marked = "keyword"
|
607
|
+
return cont()
|
608
|
+
}
|
609
|
+
}
|
610
|
+
function typeexpr(type, value) {
|
611
|
+
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
612
|
+
cx.marked = "keyword"
|
613
|
+
return cont(value == "typeof" ? expressionNoComma : typeexpr)
|
614
|
+
}
|
615
|
+
if (type == "variable" || value == "void") {
|
616
|
+
cx.marked = "type"
|
617
|
+
return cont(afterType)
|
618
|
+
}
|
619
|
+
if (value == "|" || value == "&") return cont(typeexpr)
|
620
|
+
if (type == "string" || type == "number" || type == "atom") return cont(afterType);
|
621
|
+
if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
|
622
|
+
if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
|
623
|
+
if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
|
624
|
+
if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
|
625
|
+
}
|
626
|
+
function maybeReturnType(type) {
|
627
|
+
if (type == "=>") return cont(typeexpr)
|
628
|
+
}
|
629
|
+
function typeprops(type) {
|
630
|
+
if (type.match(/[\}\)\]]/)) return cont()
|
631
|
+
if (type == "," || type == ";") return cont(typeprops)
|
632
|
+
return pass(typeprop, typeprops)
|
633
|
+
}
|
634
|
+
function typeprop(type, value) {
|
635
|
+
if (type == "variable" || cx.style == "keyword") {
|
636
|
+
cx.marked = "property"
|
637
|
+
return cont(typeprop)
|
638
|
+
} else if (value == "?" || type == "number" || type == "string") {
|
639
|
+
return cont(typeprop)
|
640
|
+
} else if (type == ":") {
|
641
|
+
return cont(typeexpr)
|
642
|
+
} else if (type == "[") {
|
643
|
+
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
|
644
|
+
} else if (type == "(") {
|
645
|
+
return pass(functiondecl, typeprop)
|
646
|
+
} else if (!type.match(/[;\}\)\],]/)) {
|
647
|
+
return cont()
|
648
|
+
}
|
649
|
+
}
|
650
|
+
function typearg(type, value) {
|
651
|
+
if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
|
652
|
+
if (type == ":") return cont(typeexpr)
|
653
|
+
if (type == "spread") return cont(typearg)
|
654
|
+
return pass(typeexpr)
|
655
|
+
}
|
656
|
+
function afterType(type, value) {
|
657
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
658
|
+
if (value == "|" || type == "." || value == "&") return cont(typeexpr)
|
659
|
+
if (type == "[") return cont(typeexpr, expect("]"), afterType)
|
660
|
+
if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
|
661
|
+
if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
|
662
|
+
}
|
663
|
+
function maybeTypeArgs(_, value) {
|
664
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
665
|
+
}
|
666
|
+
function typeparam() {
|
667
|
+
return pass(typeexpr, maybeTypeDefault)
|
668
|
+
}
|
669
|
+
function maybeTypeDefault(_, value) {
|
670
|
+
if (value == "=") return cont(typeexpr)
|
671
|
+
}
|
672
|
+
function vardef(_, value) {
|
673
|
+
if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
|
674
|
+
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
675
|
+
}
|
676
|
+
function pattern(type, value) {
|
677
|
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
|
678
|
+
if (type == "variable") { register(value); return cont(); }
|
679
|
+
if (type == "spread") return cont(pattern);
|
680
|
+
if (type == "[") return contCommasep(eltpattern, "]");
|
681
|
+
if (type == "{") return contCommasep(proppattern, "}");
|
682
|
+
}
|
683
|
+
function proppattern(type, value) {
|
684
|
+
if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
685
|
+
register(value);
|
686
|
+
return cont(maybeAssign);
|
687
|
+
}
|
688
|
+
if (type == "variable") cx.marked = "property";
|
689
|
+
if (type == "spread") return cont(pattern);
|
690
|
+
if (type == "}") return pass();
|
691
|
+
if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
|
692
|
+
return cont(expect(":"), pattern, maybeAssign);
|
693
|
+
}
|
694
|
+
function eltpattern() {
|
695
|
+
return pass(pattern, maybeAssign)
|
696
|
+
}
|
697
|
+
function maybeAssign(_type, value) {
|
698
|
+
if (value == "=") return cont(expressionNoComma);
|
699
|
+
}
|
700
|
+
function vardefCont(type) {
|
701
|
+
if (type == ",") return cont(vardef);
|
702
|
+
}
|
703
|
+
function maybeelse(type, value) {
|
704
|
+
if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
705
|
+
}
|
706
|
+
function forspec(type, value) {
|
707
|
+
if (value == "await") return cont(forspec);
|
708
|
+
if (type == "(") return cont(pushlex(")"), forspec1, poplex);
|
709
|
+
}
|
710
|
+
function forspec1(type) {
|
711
|
+
if (type == "var") return cont(vardef, forspec2);
|
712
|
+
if (type == "variable") return cont(forspec2);
|
713
|
+
return pass(forspec2)
|
714
|
+
}
|
715
|
+
function forspec2(type, value) {
|
716
|
+
if (type == ")") return cont()
|
717
|
+
if (type == ";") return cont(forspec2)
|
718
|
+
if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
|
719
|
+
return pass(expression, forspec2)
|
720
|
+
}
|
721
|
+
function functiondef(type, value) {
|
722
|
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
|
723
|
+
if (type == "variable") {register(value); return cont(functiondef);}
|
724
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
725
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
|
726
|
+
}
|
727
|
+
function functiondecl(type, value) {
|
728
|
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
|
729
|
+
if (type == "variable") {register(value); return cont(functiondecl);}
|
730
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
731
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
|
732
|
+
}
|
733
|
+
function typename(type, value) {
|
734
|
+
if (type == "keyword" || type == "variable") {
|
735
|
+
cx.marked = "type"
|
736
|
+
return cont(typename)
|
737
|
+
} else if (value == "<") {
|
738
|
+
return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
|
739
|
+
}
|
740
|
+
}
|
741
|
+
function funarg(type, value) {
|
742
|
+
if (value == "@") cont(expression, funarg)
|
743
|
+
if (type == "spread") return cont(funarg);
|
744
|
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
|
745
|
+
if (isTS && type == "this") return cont(maybetype, maybeAssign)
|
746
|
+
return pass(pattern, maybetype, maybeAssign);
|
747
|
+
}
|
748
|
+
function classExpression(type, value) {
|
749
|
+
// Class expressions may have an optional name.
|
750
|
+
if (type == "variable") return className(type, value);
|
751
|
+
return classNameAfter(type, value);
|
752
|
+
}
|
753
|
+
function className(type, value) {
|
754
|
+
if (type == "variable") {register(value); return cont(classNameAfter);}
|
755
|
+
}
|
756
|
+
function classNameAfter(type, value) {
|
757
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
|
758
|
+
if (value == "extends" || value == "implements" || (isTS && type == ",")) {
|
759
|
+
if (value == "implements") cx.marked = "keyword";
|
760
|
+
return cont(isTS ? typeexpr : expression, classNameAfter);
|
761
|
+
}
|
762
|
+
if (type == "{") return cont(pushlex("}"), classBody, poplex);
|
763
|
+
}
|
764
|
+
function classBody(type, value) {
|
765
|
+
if (type == "async" ||
|
766
|
+
(type == "variable" &&
|
767
|
+
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
768
|
+
cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
|
769
|
+
cx.marked = "keyword";
|
770
|
+
return cont(classBody);
|
771
|
+
}
|
772
|
+
if (type == "variable" || cx.style == "keyword") {
|
773
|
+
cx.marked = "property";
|
774
|
+
return cont(classfield, classBody);
|
775
|
+
}
|
776
|
+
if (type == "number" || type == "string") return cont(classfield, classBody);
|
777
|
+
if (type == "[")
|
778
|
+
return cont(expression, maybetype, expect("]"), classfield, classBody)
|
779
|
+
if (value == "*") {
|
780
|
+
cx.marked = "keyword";
|
781
|
+
return cont(classBody);
|
782
|
+
}
|
783
|
+
if (isTS && type == "(") return pass(functiondecl, classBody)
|
784
|
+
if (type == ";" || type == ",") return cont(classBody);
|
785
|
+
if (type == "}") return cont();
|
786
|
+
if (value == "@") return cont(expression, classBody)
|
787
|
+
}
|
788
|
+
function classfield(type, value) {
|
789
|
+
if (value == "?") return cont(classfield)
|
790
|
+
if (type == ":") return cont(typeexpr, maybeAssign)
|
791
|
+
if (value == "=") return cont(expressionNoComma)
|
792
|
+
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface"
|
793
|
+
return pass(isInterface ? functiondecl : functiondef)
|
794
|
+
}
|
795
|
+
function afterExport(type, value) {
|
796
|
+
if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
|
797
|
+
if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
|
798
|
+
if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
799
|
+
return pass(statement);
|
800
|
+
}
|
801
|
+
function exportField(type, value) {
|
802
|
+
if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
|
803
|
+
if (type == "variable") return pass(expressionNoComma, exportField);
|
804
|
+
}
|
805
|
+
function afterImport(type) {
|
806
|
+
if (type == "string") return cont();
|
807
|
+
if (type == "(") return pass(expression);
|
808
|
+
if (type == ".") return pass(maybeoperatorComma);
|
809
|
+
return pass(importSpec, maybeMoreImports, maybeFrom);
|
810
|
+
}
|
811
|
+
function importSpec(type, value) {
|
812
|
+
if (type == "{") return contCommasep(importSpec, "}");
|
813
|
+
if (type == "variable") register(value);
|
814
|
+
if (value == "*") cx.marked = "keyword";
|
815
|
+
return cont(maybeAs);
|
816
|
+
}
|
817
|
+
function maybeMoreImports(type) {
|
818
|
+
if (type == ",") return cont(importSpec, maybeMoreImports)
|
819
|
+
}
|
820
|
+
function maybeAs(_type, value) {
|
821
|
+
if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
|
822
|
+
}
|
823
|
+
function maybeFrom(_type, value) {
|
824
|
+
if (value == "from") { cx.marked = "keyword"; return cont(expression); }
|
825
|
+
}
|
826
|
+
function arrayLiteral(type) {
|
827
|
+
if (type == "]") return cont();
|
828
|
+
return pass(commasep(expressionNoComma, "]"));
|
829
|
+
}
|
830
|
+
function enumdef() {
|
831
|
+
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
|
832
|
+
}
|
833
|
+
function enummember() {
|
834
|
+
return pass(pattern, maybeAssign);
|
835
|
+
}
|
836
|
+
|
837
|
+
function isContinuedStatement(state, textAfter) {
|
838
|
+
return state.lastType == "operator" || state.lastType == "," ||
|
839
|
+
isOperatorChar.test(textAfter.charAt(0)) ||
|
840
|
+
/[,.]/.test(textAfter.charAt(0));
|
841
|
+
}
|
842
|
+
|
843
|
+
function expressionAllowed(stream, state, backUp) {
|
844
|
+
return state.tokenize == tokenBase &&
|
845
|
+
/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
|
846
|
+
(state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
|
847
|
+
}
|
848
|
+
|
849
|
+
// Interface
|
850
|
+
|
851
|
+
return {
|
852
|
+
startState: function(basecolumn) {
|
853
|
+
var state = {
|
854
|
+
tokenize: tokenBase,
|
855
|
+
lastType: "sof",
|
856
|
+
cc: [],
|
857
|
+
lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
|
858
|
+
localVars: parserConfig.localVars,
|
859
|
+
context: parserConfig.localVars && new Context(null, null, false),
|
860
|
+
indented: basecolumn || 0
|
861
|
+
};
|
862
|
+
if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
|
863
|
+
state.globalVars = parserConfig.globalVars;
|
864
|
+
return state;
|
865
|
+
},
|
866
|
+
|
867
|
+
token: function(stream, state) {
|
868
|
+
if (stream.sol()) {
|
869
|
+
if (!state.lexical.hasOwnProperty("align"))
|
870
|
+
state.lexical.align = false;
|
871
|
+
state.indented = stream.indentation();
|
872
|
+
findFatArrow(stream, state);
|
873
|
+
}
|
874
|
+
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
875
|
+
var style = state.tokenize(stream, state);
|
876
|
+
if (type == "comment") return style;
|
877
|
+
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
878
|
+
return parseJS(state, style, type, content, stream);
|
879
|
+
},
|
880
|
+
|
881
|
+
indent: function(state, textAfter) {
|
882
|
+
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
|
883
|
+
if (state.tokenize != tokenBase) return 0;
|
884
|
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
|
885
|
+
// Kludge to prevent 'maybelse' from blocking lexical scope pops
|
886
|
+
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
887
|
+
var c = state.cc[i];
|
888
|
+
if (c == poplex) lexical = lexical.prev;
|
889
|
+
else if (c != maybeelse && c != popcontext) break;
|
890
|
+
}
|
891
|
+
while ((lexical.type == "stat" || lexical.type == "form") &&
|
892
|
+
(firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
|
893
|
+
(top == maybeoperatorComma || top == maybeoperatorNoComma) &&
|
894
|
+
!/^[,\.=+\-*:?[\(]/.test(textAfter))))
|
895
|
+
lexical = lexical.prev;
|
896
|
+
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
897
|
+
lexical = lexical.prev;
|
898
|
+
var type = lexical.type, closing = firstChar == type;
|
899
|
+
|
900
|
+
if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
901
|
+
else if (type == "form" && firstChar == "{") return lexical.indented;
|
902
|
+
else if (type == "form") return lexical.indented + indentUnit;
|
903
|
+
else if (type == "stat")
|
904
|
+
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);
|
905
|
+
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
906
|
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
907
|
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
908
|
+
else return lexical.indented + (closing ? 0 : indentUnit);
|
909
|
+
},
|
910
|
+
|
911
|
+
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
912
|
+
blockCommentStart: jsonMode ? null : "/*",
|
913
|
+
blockCommentEnd: jsonMode ? null : "*/",
|
914
|
+
blockCommentContinue: jsonMode ? null : " * ",
|
915
|
+
lineComment: jsonMode ? null : "//",
|
916
|
+
fold: "brace",
|
917
|
+
closeBrackets: "()[]{}''\"\"``",
|
918
|
+
|
919
|
+
helperType: jsonMode ? "json" : "javascript",
|
920
|
+
jsonldMode: jsonldMode,
|
921
|
+
jsonMode: jsonMode,
|
922
|
+
|
923
|
+
expressionAllowed: expressionAllowed,
|
924
|
+
|
925
|
+
skipExpression: function(state) {
|
926
|
+
parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null))
|
927
|
+
}
|
928
|
+
};
|
929
|
+
});
|
930
|
+
|
931
|
+
CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);
|
932
|
+
|
933
|
+
CodeMirror.defineMIME("text/javascript", "javascript");
|
934
|
+
CodeMirror.defineMIME("text/ecmascript", "javascript");
|
935
|
+
CodeMirror.defineMIME("application/javascript", "javascript");
|
936
|
+
CodeMirror.defineMIME("application/x-javascript", "javascript");
|
937
|
+
CodeMirror.defineMIME("application/ecmascript", "javascript");
|
938
|
+
CodeMirror.defineMIME("application/json", { name: "javascript", json: true });
|
939
|
+
CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true });
|
940
|
+
CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true })
|
941
|
+
CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true });
|
942
|
+
CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
|
943
|
+
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|
944
|
+
|
945
|
+
});
|