mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 07:32:27 +01:00
Merge branch 'dev' into dev
This commit is contained in:
commit
6f7981ff25
@ -1,3 +1,3 @@
|
|||||||
last 4 versions
|
last 8 versions
|
||||||
not dead
|
not dead
|
||||||
not ie <= 11
|
not ie <= 11
|
||||||
|
@ -1,27 +1,26 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
|
||||||
input/
|
|
||||||
|
|
||||||
.dist
|
.dist
|
||||||
.tmp
|
.tmp
|
||||||
.package
|
.package
|
||||||
|
.build
|
||||||
assets/
|
|
||||||
css/
|
|
||||||
.cypress/
|
.cypress/
|
||||||
cypress/
|
|
||||||
|
dist/
|
||||||
|
input/
|
||||||
|
assets/
|
||||||
doc/
|
doc/
|
||||||
markdown/
|
markdown/
|
||||||
netscript_tests/
|
|
||||||
scripts/
|
|
||||||
|
test/netscript/
|
||||||
|
|
||||||
electron/lib
|
electron/lib
|
||||||
electron/greenworks.js
|
electron/greenworks.js
|
||||||
src/ThirdParty/*
|
src/ThirdParty/*
|
||||||
src/JSInterpreter.js
|
src/JSInterpreter.js
|
||||||
|
tools/engines-check/
|
||||||
|
|
||||||
test/*.bundle.*
|
|
||||||
editor.main.js
|
editor.main.js
|
||||||
main.bundle.js
|
main.bundle.js
|
||||||
webpack.config.js
|
webpack.config.js
|
||||||
webpack.config-test.js
|
|
||||||
|
20
.eslintrc.js
20
.eslintrc.js
@ -4,7 +4,11 @@ module.exports = {
|
|||||||
commonjs: true,
|
commonjs: true,
|
||||||
es6: false,
|
es6: false,
|
||||||
},
|
},
|
||||||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
extends: [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||||
|
],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 8,
|
ecmaVersion: 8,
|
||||||
@ -12,6 +16,7 @@ module.exports = {
|
|||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
experimentalObjectRestSpread: true,
|
experimentalObjectRestSpread: true,
|
||||||
},
|
},
|
||||||
|
project: ["./tsconfig.json", "./test/tsconfig.json", "./tools/tsconfig.json", "./test/cypress/tsconfig.json"],
|
||||||
},
|
},
|
||||||
plugins: ["@typescript-eslint"],
|
plugins: ["@typescript-eslint"],
|
||||||
rules: {
|
rules: {
|
||||||
@ -43,7 +48,7 @@ module.exports = {
|
|||||||
curly: ["off"],
|
curly: ["off"],
|
||||||
"default-case": ["off"],
|
"default-case": ["off"],
|
||||||
"dot-notation": ["off"],
|
"dot-notation": ["off"],
|
||||||
"eol-last": ["off"],
|
"eol-last": ["error"],
|
||||||
eqeqeq: ["off"],
|
eqeqeq: ["off"],
|
||||||
"for-direction": ["error"],
|
"for-direction": ["error"],
|
||||||
"func-call-spacing": ["off"],
|
"func-call-spacing": ["off"],
|
||||||
@ -137,7 +142,7 @@ module.exports = {
|
|||||||
"no-ex-assign": ["off"],
|
"no-ex-assign": ["off"],
|
||||||
"no-extra-boolean-cast": ["error"],
|
"no-extra-boolean-cast": ["error"],
|
||||||
"no-extra-parens": ["off"],
|
"no-extra-parens": ["off"],
|
||||||
"no-extra-semi": ["off"],
|
"no-extra-semi": ["error"],
|
||||||
"no-eval": ["off"],
|
"no-eval": ["off"],
|
||||||
"no-extend-native": ["off"],
|
"no-extend-native": ["off"],
|
||||||
"no-extra-bind": ["error"],
|
"no-extra-bind": ["error"],
|
||||||
@ -166,12 +171,12 @@ module.exports = {
|
|||||||
"no-label-var": ["error"],
|
"no-label-var": ["error"],
|
||||||
"no-labels": ["off"],
|
"no-labels": ["off"],
|
||||||
"no-lone-blocks": ["error"],
|
"no-lone-blocks": ["error"],
|
||||||
"no-lonely-if": ["off"],
|
"no-lonely-if": ["error"],
|
||||||
"no-loop-func": ["off"],
|
"no-loop-func": ["off"],
|
||||||
"no-magic-numbers": ["off"],
|
"no-magic-numbers": ["off"],
|
||||||
"no-mixed-operators": ["off"],
|
"no-mixed-operators": ["off"],
|
||||||
"no-mixed-requires": ["error"],
|
"no-mixed-requires": ["error"],
|
||||||
"no-mixed-spaces-and-tabs": ["off"],
|
"no-mixed-spaces-and-tabs": ["error"],
|
||||||
"no-multi-assign": ["off"],
|
"no-multi-assign": ["off"],
|
||||||
"no-multi-spaces": ["off"],
|
"no-multi-spaces": ["off"],
|
||||||
"no-multi-str": ["error"],
|
"no-multi-str": ["error"],
|
||||||
@ -236,7 +241,7 @@ module.exports = {
|
|||||||
"no-ternary": ["off"],
|
"no-ternary": ["off"],
|
||||||
"no-this-before-super": ["off"],
|
"no-this-before-super": ["off"],
|
||||||
"no-throw-literal": ["error"],
|
"no-throw-literal": ["error"],
|
||||||
"no-trailing-spaces": ["off"],
|
"no-trailing-spaces": ["error"],
|
||||||
"no-undef": ["off"],
|
"no-undef": ["off"],
|
||||||
"no-undef-init": ["error"],
|
"no-undef-init": ["error"],
|
||||||
"no-undefined": ["off"],
|
"no-undefined": ["off"],
|
||||||
@ -253,7 +258,7 @@ module.exports = {
|
|||||||
"no-use-before-define": ["off"],
|
"no-use-before-define": ["off"],
|
||||||
"no-useless-call": ["off"],
|
"no-useless-call": ["off"],
|
||||||
"no-useless-computed-key": ["error"],
|
"no-useless-computed-key": ["error"],
|
||||||
"no-useless-concat": ["off"],
|
"no-useless-concat": ["error"],
|
||||||
"no-useless-constructor": ["error"],
|
"no-useless-constructor": ["error"],
|
||||||
"no-useless-escape": ["off"],
|
"no-useless-escape": ["off"],
|
||||||
"no-useless-rename": [
|
"no-useless-rename": [
|
||||||
@ -353,6 +358,7 @@ module.exports = {
|
|||||||
"no-useless-constructor": [
|
"no-useless-constructor": [
|
||||||
"off", // Valid for typescript due to property ctor shorthand
|
"off", // Valid for typescript due to property ctor shorthand
|
||||||
],
|
],
|
||||||
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/ban-ts-ignore": "off",
|
"@typescript-eslint/ban-ts-ignore": "off",
|
||||||
"@typescript-eslint/camelcase": "off",
|
"@typescript-eslint/camelcase": "off",
|
||||||
|
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1 +1 @@
|
|||||||
* text=auto
|
* text=auto eol=lf
|
||||||
|
8
.github/ISSUE_TEMPLATE
vendored
Normal file
8
.github/ISSUE_TEMPLATE
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# DELETE THIS AFTER READING
|
||||||
|
|
||||||
|
# include (where relevant)
|
||||||
|
|
||||||
|
- [ ] Save file
|
||||||
|
- [ ] Minimal scripts to reproduce the issue
|
||||||
|
- [ ] Steps to reproduce
|
||||||
|
- [ ] Version of the game, e.g. Bitburner v1.3.0 (216bf616)
|
29
.github/PULL_REQUEST_TEMPLATE
vendored
Normal file
29
.github/PULL_REQUEST_TEMPLATE
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# DELETE THIS AFTER READING
|
||||||
|
|
||||||
|
# READ CONTRIBUTING.md
|
||||||
|
|
||||||
|
# PR title
|
||||||
|
|
||||||
|
Formatted as such:
|
||||||
|
SECTION: FIX #xzyw PLAYER DESCRIPTION
|
||||||
|
|
||||||
|
SECTION is something like "API", "UI", "MISC", "STANEK", "CORPORATION"
|
||||||
|
FIX #xyzw is the issue number, if any
|
||||||
|
PLAYER DESCRIPTION is what you'd tell a non-contributor to convey what is changed.
|
||||||
|
|
||||||
|
# Linked issues
|
||||||
|
|
||||||
|
If your pull request is related to a git issue, please link it in the description using #xyz.
|
||||||
|
If your PR should close the issue when it is merged in, use `fixes #xyz` or `closes #xyz`. It'll automate the process.
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
|
||||||
|
- DO NOT CHANGE any markdown/\*.md, these files are autogenerated from NetscriptDefinitions.d.ts and will be overwritten
|
||||||
|
- DO NOT re-generate the documentation, makes it harder to review.
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
|
||||||
|
- Include how it was tested
|
||||||
|
- Include screenshot / gif (if possible)
|
||||||
|
|
||||||
|
Make sure you run `npm run format` and `npm run lint` before pushing.
|
100
.github/workflows/bump-version.yml
vendored
Normal file
100
.github/workflows/bump-version.yml
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
name: Bump BitBurner Version
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "Version (format: x.y.z)"
|
||||||
|
required: true
|
||||||
|
versionNumber:
|
||||||
|
description: "Version Number (for saves migration)"
|
||||||
|
required: true
|
||||||
|
changelog:
|
||||||
|
description: "Changelog (url that points to RAW markdown)"
|
||||||
|
default: ""
|
||||||
|
buildApp:
|
||||||
|
description: "Include Application Build"
|
||||||
|
type: boolean
|
||||||
|
default: "true"
|
||||||
|
required: true
|
||||||
|
buildDoc:
|
||||||
|
description: "Include Documentation Build"
|
||||||
|
type: boolean
|
||||||
|
default: "true"
|
||||||
|
required: true
|
||||||
|
prepareRelease:
|
||||||
|
description: "Prepare Draft Release"
|
||||||
|
type: boolean
|
||||||
|
default: "true"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bumpVersion:
|
||||||
|
name: Bump Version
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- name: Install pandoc dependency
|
||||||
|
run: sudo apt-get install -y pandoc
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install NPM dependencies for version updater
|
||||||
|
working-directory: ./tools/bump-version
|
||||||
|
run: npm ci
|
||||||
|
- name: Bump version & update changelogs
|
||||||
|
working-directory: ./tools/bump-version
|
||||||
|
run: |
|
||||||
|
curl ${{ github.event.inputs.changelog }} > changes.md
|
||||||
|
node index.js --version=${{ github.event.inputs.version }} --versionNumber=${{ github.event.inputs.versionNumber }} < changes.md
|
||||||
|
- name: Install NPM dependencies for app
|
||||||
|
if: ${{ github.event.inputs.buildApp == 'true' || github.event.inputs.buildDoc == 'true' }}
|
||||||
|
run: npm ci
|
||||||
|
- name: Build Production App
|
||||||
|
if: ${{ github.event.inputs.buildApp == 'true' }}
|
||||||
|
run: npm run build
|
||||||
|
- name: Build Documentation
|
||||||
|
if: ${{ github.event.inputs.buildDoc == 'true' }}
|
||||||
|
run: npm run doc
|
||||||
|
- name: Commit Files
|
||||||
|
run: |
|
||||||
|
git config --global user.name "GitHub"
|
||||||
|
git config --global user.email "noreply@github.com"
|
||||||
|
git checkout -b bump/v${{ github.event.inputs.version }}
|
||||||
|
git add -A
|
||||||
|
echo "Bump version to v${{ github.event.inputs.version }}" > commitmessage.txt
|
||||||
|
echo "" >> commitmessage.txt
|
||||||
|
cat ./tools/bump-version/changes.md >> commitmessage.txt
|
||||||
|
git commit -F commitmessage.txt
|
||||||
|
git push -u origin bump/v${{ github.event.inputs.version }}
|
||||||
|
- name: Create Pull Request
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh pr create \
|
||||||
|
--base "${{ github.ref_name }}" \
|
||||||
|
--head "bump/v${{ github.event.inputs.version }}" \
|
||||||
|
--title "Bump version to v${{ github.event.inputs.version }}" \
|
||||||
|
--body-file ./tools/bump-version/changes.md
|
||||||
|
- name: Prepare release
|
||||||
|
if: ${{ github.event.inputs.prepareRelease == 'true' }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
RELEASE_TITLE="$(head -n 1 ./tools/bump-version/changes.md | sed 's/## //')"
|
||||||
|
RELEASE_TITLE="${RELEASE_TITLE:-v${{ github.event.inputs.version }}}"
|
||||||
|
gh release create \
|
||||||
|
v${{ github.event.inputs.version }} \
|
||||||
|
--target dev \
|
||||||
|
--title "$RELEASE_TITLE" \
|
||||||
|
--notes-file ./tools/bump-version/changes.md \
|
||||||
|
--generate-notes \
|
||||||
|
--draft
|
85
.github/workflows/check-for-generated-files.yml
vendored
Normal file
85
.github/workflows/check-for-generated-files.yml
vendored
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
name: Check for Generated Files
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the dev branch
|
||||||
|
pull_request:
|
||||||
|
branches: [dev]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checkFiles:
|
||||||
|
name: Check Files
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout files
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Check bundle files
|
||||||
|
id: changed-bundle-files
|
||||||
|
uses: tj-actions/changed-files@v18.4
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
dist/*
|
||||||
|
index.html
|
||||||
|
main.bundle.js
|
||||||
|
main.bundle.js.map
|
||||||
|
|
||||||
|
- name: Check documentation changes
|
||||||
|
id: changed-markdown-doc-files
|
||||||
|
uses: tj-actions/changed-files@v18.4
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
markdown/*.md
|
||||||
|
|
||||||
|
- name: Warn when bundle files were changed
|
||||||
|
id: warn-bundles-changed
|
||||||
|
if: steps.changed-bundle-files.outputs.any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
echo "One or more files in the bundle files were changed." >> warnings.txt
|
||||||
|
|
||||||
|
- name: Warn when documentation markdown files were changed
|
||||||
|
id: warn-markdown-changed
|
||||||
|
if: steps.changed-markdown-doc-files.outputs.any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
echo "One or more files in the markdown documentation were changed." >> warnings.txt
|
||||||
|
|
||||||
|
- name: Print Warnings
|
||||||
|
id: get-warnings
|
||||||
|
run: |
|
||||||
|
if [ -f warnings.txt ]
|
||||||
|
then
|
||||||
|
echo "::set-output name=has_warnings::true"
|
||||||
|
else
|
||||||
|
echo "::set-output name=has_warnings::false"
|
||||||
|
touch warnings.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Get Comment Body
|
||||||
|
id: get-comment-body
|
||||||
|
if: steps.get-warnings.outputs.has_warnings == 'true'
|
||||||
|
run: |
|
||||||
|
cat warnings.txt > comment.txt
|
||||||
|
echo "" >> comment.txt
|
||||||
|
echo "Please do not commit files generated by webpack or generated markdown" >> comment.txt
|
||||||
|
echo "" >> comment.txt
|
||||||
|
echo "See [CONTRIBUTING.md](https://github.com/danielyxie/bitburner/blob/dev/doc/CONTRIBUTING.md) for details." >> comment.txt
|
||||||
|
|
||||||
|
body=$(cat comment.txt)
|
||||||
|
body="${body//'%'/'%25'}"
|
||||||
|
body="${body//$'\n'/'%0A'}"
|
||||||
|
body="${body//$'\r'/'%0D'}"
|
||||||
|
|
||||||
|
echo ::set-output name=body::$body
|
||||||
|
- name: Add github comment on problem
|
||||||
|
if: steps.get-warnings.outputs.has_warnings == 'true'
|
||||||
|
uses: peter-evans/commit-comment@v1
|
||||||
|
with:
|
||||||
|
body: ${{ steps.get-comment-body.outputs.body }}
|
||||||
|
- name: Flag as error
|
||||||
|
if: steps.get-warnings.outputs.has_warnings == 'true'
|
||||||
|
run: |
|
||||||
|
COMMIT_WARNINGS=$(cat warnings.txt)
|
||||||
|
echo "::warning:: $COMMIT_WARNINGS"
|
||||||
|
exit 1
|
71
.github/workflows/ci-pr.yml
vendored
Normal file
71
.github/workflows/ci-pr.yml
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
name: CI Pull Request
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on pull request events but only for the dev branch, checking only diffs
|
||||||
|
pull_request:
|
||||||
|
branches: [dev]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Build the production app
|
||||||
|
run: npm run build
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run linter
|
||||||
|
run: npm run lint:report-diff
|
||||||
|
prettier:
|
||||||
|
name: Prettier
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run prettier check
|
||||||
|
run: npm run format:report-diff
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test
|
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -1,11 +1,9 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the dev branch
|
# Triggers the workflow on push events but only for the dev branch
|
||||||
push:
|
push:
|
||||||
branches: [ dev ]
|
branches: [dev]
|
||||||
pull_request:
|
|
||||||
branches: [ dev ]
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -20,7 +18,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16.13.1
|
node-version: 16.13.1
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build the production app
|
- name: Build the production app
|
||||||
@ -34,11 +32,25 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16.13.1
|
node-version: 16.13.1
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint:report
|
run: npm run lint:report
|
||||||
|
prettier:
|
||||||
|
name: Prettier
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run prettier check
|
||||||
|
run: npm run format:report
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -48,8 +60,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16.13.1
|
node-version: 16.13.1
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run linter
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
44
.github/workflows/fetch-changes.yml
vendored
Normal file
44
.github/workflows/fetch-changes.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Fetch Merged Changes
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
fromCommit:
|
||||||
|
description: "From Commit SHA (full-length)"
|
||||||
|
required: true
|
||||||
|
toCommit:
|
||||||
|
description: "To Commit SHA (full-length, if omitted will use latest)"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fetchChangelog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node v16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: "npm"
|
||||||
|
- name: Install NPM dependencies
|
||||||
|
working-directory: ./tools/fetch-changelog
|
||||||
|
run: npm ci
|
||||||
|
- name: Fetch Changes from GitHub API
|
||||||
|
working-directory: ./tools/fetch-changelog
|
||||||
|
env:
|
||||||
|
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
node index.js \
|
||||||
|
--from=${{ github.event.inputs.fromCommit }} \
|
||||||
|
--to=${{ github.event.inputs.toCommit }} > changes.md
|
||||||
|
echo
|
||||||
|
echo "============================================================"
|
||||||
|
echo
|
||||||
|
cat changes.md
|
||||||
|
echo
|
||||||
|
echo "============================================================"
|
||||||
|
echo
|
||||||
|
echo "You may want to go to https://gist.github.com/ to upload the final changelog"
|
||||||
|
echo "The next step will require an url because we can't easily pass multiline strings to actions"
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: bitburner_changelog___DRAFT.md
|
||||||
|
path: ./tools/fetch-changelog/changes.md
|
64
.github/workflows/validate-pr.yml
vendored
Normal file
64
.github/workflows/validate-pr.yml
vendored
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
name: Validate PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [dev]
|
||||||
|
types: [opened, edited, synchronize, reopened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checkTitle:
|
||||||
|
name: Check Title
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
steps:
|
||||||
|
- name: Validate Title
|
||||||
|
id: validate-pr-title
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
echo "Creating label (if it does not exist)"
|
||||||
|
LABEL="validation: invalid title"
|
||||||
|
gh --repo "${{ github.repository }}" \
|
||||||
|
label create "$LABEL" --description "Modifications to this pull request are requested" --color D93F0B || true
|
||||||
|
|
||||||
|
PR_TITLE=$(\
|
||||||
|
gh --repo "${{ github.repository }}" \
|
||||||
|
pr view "${{ github.event.number }}" --json title --jq .title)
|
||||||
|
echo "::set-output name=title::$PR_TITLE"
|
||||||
|
echo "PR Title: $PR_TITLE"
|
||||||
|
|
||||||
|
TITLE_REGEX="^[0-9A-Z\-]*: .*$"
|
||||||
|
PR_TITLE_VALID=$(echo "$PR_TITLE" | grep -Eq "$TITLE_REGEX" && echo "true" || echo "false")
|
||||||
|
|
||||||
|
if [ "$PR_TITLE_VALID" == "true" ]; then
|
||||||
|
echo "Title is valid, removing label"
|
||||||
|
gh --repo "${{ github.repository }}" \
|
||||||
|
pr edit "${{ github.event.number }}" --remove-label "$LABEL" || true
|
||||||
|
else
|
||||||
|
echo "Invalid Title"
|
||||||
|
ERROR_MSG="$PR_TITLE -> should match -> $TITLE_REGEX"
|
||||||
|
echo "$ERROR_MSG"
|
||||||
|
echo "::set-output name=invalid::true"
|
||||||
|
echo "::set-output name=errorMessage::$ERROR_MSG"
|
||||||
|
|
||||||
|
touch comment.txt
|
||||||
|
echo "## The title \`$PR_TITLE\` should match \`$TITLE_REGEX\`" >> comment.txt
|
||||||
|
echo "" >> comment.txt
|
||||||
|
echo "SECTION: FIX #xzyw PLAYER DESCRIPTION" >> comment.txt
|
||||||
|
echo "" >> comment.txt
|
||||||
|
echo 'SECTION is something like "API", "UI", "MISC", "STANEK", "CORPORATION"' >> comment.txt
|
||||||
|
echo 'FIX #xyzw is the issue number, if any' >> comment.txt
|
||||||
|
echo "PLAYER DESCRIPTION is what you'd tell a non-contributor to convey what is changed." >> comment.txt
|
||||||
|
|
||||||
|
echo "Add pr label"
|
||||||
|
gh --repo "${{ github.repository }}" \
|
||||||
|
pr edit "${{ github.event.number }}" --add-label "$LABEL"
|
||||||
|
echo "And comment on the pr"
|
||||||
|
gh --repo "${{ github.repository }}" \
|
||||||
|
pr comment "${{ github.event.number }}" --body-file comment.txt
|
||||||
|
fi
|
||||||
|
- name: Flag workflow error
|
||||||
|
if: steps.validate-pr-title.outputs.invalid == 'true'
|
||||||
|
run: |
|
||||||
|
echo "${{ steps.validate-pr-title.outputs.errorMessage }}"
|
||||||
|
exit 1
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,13 +1,15 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
.history
|
||||||
.vscode
|
.vscode
|
||||||
Changelog.txt
|
Changelog.txt
|
||||||
Netburner.txt
|
Netburner.txt
|
||||||
/doc/build
|
/doc/build
|
||||||
/node_modules
|
/node_modules
|
||||||
/dist/*.map
|
/electron/node_modules
|
||||||
/test/*.map
|
/test/*.map
|
||||||
/test/*.bundle.*
|
/test/*.bundle.*
|
||||||
/test/*.css
|
/test/*.css
|
||||||
|
/input/bitburner.api.json
|
||||||
.cypress
|
.cypress
|
||||||
|
|
||||||
# tmp folder for electron
|
# tmp folder for electron
|
||||||
|
3
.npmrc
Normal file
3
.npmrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Default "npm version" commit message
|
||||||
|
# See: https://stackoverflow.com/a/34606092
|
||||||
|
message=":bookmark: Build v%s"
|
@ -2,3 +2,14 @@ node_modules
|
|||||||
package.json
|
package.json
|
||||||
dist
|
dist
|
||||||
doc/build/
|
doc/build/
|
||||||
|
doc/source
|
||||||
|
.build
|
||||||
|
.package
|
||||||
|
|
||||||
|
editor.main.js
|
||||||
|
main.bundle.js
|
||||||
|
index.html
|
||||||
|
markdown
|
||||||
|
|
||||||
|
package.json
|
||||||
|
package.lock.json
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
|
"endOfLine": "lf",
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"printWidth": 120
|
"printWidth": 120
|
||||||
}
|
}
|
||||||
|
1
CODE_OF_CONDUCT.md
Normal file
1
CODE_OF_CONDUCT.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Don't be an ass.
|
17
README.md
17
README.md
@ -1,27 +1,32 @@
|
|||||||
# Bitburner
|
# Bitburner
|
||||||
|
|
||||||
|
[![Join Discord](https://img.shields.io/discord/415207508303544321)](https://discord.gg/TFc3hKD)
|
||||||
|
|
||||||
|
[![Build Status](https://github.com/danielyxie/bitburner/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/danielyxie/bitburner/actions/workflows/ci.yml)
|
||||||
|
|
||||||
Bitburner is a programming-based [incremental game](https://en.wikipedia.org/wiki/Incremental_game)
|
Bitburner is a programming-based [incremental game](https://en.wikipedia.org/wiki/Incremental_game)
|
||||||
that revolves around hacking and cyberpunk themes.
|
that revolves around hacking and cyberpunk themes.
|
||||||
The game can be played at https://danielyxie.github.io/bitburner.
|
The game can be played at https://danielyxie.github.io/bitburner or installed through [Steam](https://store.steampowered.com/app/1812820/Bitburner/).
|
||||||
|
|
||||||
|
See the [frequently asked questions](./doc/FAQ.md) for more information . To discuss the game or get help, join the [official discord server](https://discord.gg/TFc3hKD)
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
The game's official documentation can be found on [Read The
|
The game's official documentation can be found on [Read The
|
||||||
Docs](http://bitburner.readthedocs.io/). Please note that this is still a
|
Docs](http://bitburner.readthedocs.io/). Please note that this is still a work-in-progress.
|
||||||
work-in-progress.
|
|
||||||
|
|
||||||
The documentation is created using [Sphinx](http://www.sphinx-doc.org).
|
The [in-game documentation](./markdown/bitburner.md) is generated from the [TypeScript definitions](./src/ScriptEditor/NetscriptDefinitions.d.ts).
|
||||||
|
|
||||||
Anyone is welcome to contribute to the documentation by editing the [source
|
Anyone is welcome to contribute to the documentation by editing the [source
|
||||||
files](/doc/source) and then making a pull request with your contributions.
|
files](/doc/source) and then making a pull request with your contributions.
|
||||||
For further guidance, please refer to the "As A Documentor" section of
|
For further guidance, please refer to the "As A Documentor" section of
|
||||||
[CONTRIBUTING](CONTRIBUTING.md).
|
[CONTRIBUTING](./doc/CONTRIBUTING.md).
|
||||||
|
|
||||||
# Contribution
|
# Contribution
|
||||||
|
|
||||||
There are many ways to contribute to the game. It can be as simple as fixing
|
There are many ways to contribute to the game. It can be as simple as fixing
|
||||||
a typo, correcting a bug, or improving the UI. For guidance on doing so,
|
a typo, correcting a bug, or improving the UI. For guidance on doing so,
|
||||||
please refer to the [CONTRIBUTING](CONTRIBUTING.md) document.
|
please refer to the [CONTRIBUTING](./doc/CONTRIBUTING.md) document.
|
||||||
|
|
||||||
You will retain all ownership of the Copyright of any contributions you make,
|
You will retain all ownership of the Copyright of any contributions you make,
|
||||||
and will have the same rights to use or license your contributions. By
|
and will have the same rights to use or license your contributions. By
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
## Deploying a new version
|
|
||||||
|
|
||||||
Update the following
|
|
||||||
|
|
||||||
- `src/Constants.ts` `Version` and `LatestUpdate`
|
|
||||||
- `package.json` `version`
|
|
||||||
- `doc/source/conf.py` `version` and `release`
|
|
||||||
- `doc/source/changelog.rst`
|
|
||||||
- post to discord
|
|
||||||
- post to reddit.com/r/Bitburner
|
|
||||||
|
|
||||||
## Deploying `dev` to the Beta Branch
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
## Development Workflow Best Practices
|
|
||||||
|
|
||||||
- Work in a new branch forked from the `dev` branch to isolate your new code
|
|
||||||
- Keep code-changes on a branch as small as possible. This makes it easier for code review. Each branch should be its own independent feature.
|
|
||||||
- Regularly rebase your branch against `dev` to make sure you have the latest updates pulled.
|
|
||||||
- When merging, always merge your branch into `dev`. When releasing a new update, then merge `dev` into `master`
|
|
15
assets/Steam/achievements/pack-for-web.sh
Normal file
15
assets/Steam/achievements/pack-for-web.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
ROOTDIR=$BASEDIR/../../..
|
||||||
|
echo $ROOTDIR
|
||||||
|
rm -rf $ROOTDIR/dist/icons/achievements
|
||||||
|
mkdir -p $ROOTDIR/dist/icons
|
||||||
|
cp -r $BASEDIR/real $ROOTDIR/dist/icons/achievements
|
||||||
|
for i in $ROOTDIR/dist/icons/achievements/*.svg; do
|
||||||
|
echo $i
|
||||||
|
# Make background transparent and replace green with black
|
||||||
|
# The icons will be recolored by css filters matching the player's theme
|
||||||
|
sed -i "s/fill:#000000;/fill-opacity: 0%;/g" "$i"
|
||||||
|
sed -i "s/fill:#00ff00;/fill:#000000;/g" "$i"
|
||||||
|
done
|
BIN
assets/favicon.ico
Normal file
BIN
assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -1,23 +0,0 @@
|
|||||||
.staneksgift_row {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.staneksgift_cell {
|
|
||||||
width: 25px;
|
|
||||||
height: 25px;
|
|
||||||
background-color: #808080;
|
|
||||||
font-color: white;
|
|
||||||
padding: 0px;
|
|
||||||
margin: 0px;
|
|
||||||
border: 1px solid black;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.staneksgift_cell:first-child {
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.staneksgift_container {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
12
cypress.json
12
cypress.json
@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
"baseUrl": "http://localhost:8000",
|
"baseUrl": "http://localhost:8000",
|
||||||
"fixturesFolder": false,
|
|
||||||
"trashAssetsBeforeRuns": true,
|
"trashAssetsBeforeRuns": true,
|
||||||
"screenshotsFolder": ".cypress/screenshots",
|
|
||||||
"videosFolder": ".cypress/videos",
|
|
||||||
"videoUploadOnPasses": false,
|
"videoUploadOnPasses": false,
|
||||||
"viewportWidth": 1980,
|
"viewportWidth": 1980,
|
||||||
"viewportHeight": 1080
|
"viewportHeight": 1080,
|
||||||
|
"fixturesFolder": "test/cypress/fixtures",
|
||||||
|
"integrationFolder": "test/cypress/integration",
|
||||||
|
"pluginsFile": "test/cypress/plugins/index.js",
|
||||||
|
"supportFile": "test/cypress/support/index.js",
|
||||||
|
"screenshotsFolder": ".cypress/screenshots",
|
||||||
|
"videosFolder": ".cypress/videos",
|
||||||
|
"downloadsFolder": ".cypress/downloads"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
export {};
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
cy.visit("/");
|
|
||||||
cy.clearLocalStorage();
|
|
||||||
cy.window().then((win) => {
|
|
||||||
win.indexedDB.deleteDatabase("bitburnerSave");
|
|
||||||
});
|
|
||||||
});
|
|
2296
dist/bitburner.d.ts
vendored
2296
dist/bitburner.d.ts
vendored
File diff suppressed because it is too large
Load Diff
20
dist/engine.bundle.js
vendored
20
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/engineStyle.bundle.js
vendored
2
dist/engineStyle.bundle.js
vendored
@ -1,2 +0,0 @@
|
|||||||
!function(n){function t(t){for(var e,i,f=t[0],c=t[1],l=t[2],a=0,s=[];a<f.length;a++)i=f[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&s.push(r[i][0]),r[i]=0;for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(n[e]=c[e]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,l||[]),o()}function o(){for(var n,t=0;t<u.length;t++){for(var o=u[t],e=!0,f=1;f<o.length;f++){var c=o[f];0!==r[c]&&(e=!1)}e&&(u.splice(t--,1),n=i(i.s=o[0]))}return n}var e={},r={2:0},u=[];function i(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=n,i.c=e,i.d=function(n,t,o){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,t){if(1&t&&(n=i(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var e in n)i.d(o,e,function(t){return n[t]}.bind(null,e));return o},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="";var f=window.webpackJsonp=window.webpackJsonp||[],c=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var p=c;u.push([1281,0]),o()}({1281:function(n,t,o){"use strict";o.r(t);o(1282),o(1284),o(1286),o(1288),o(1290),o(1292),o(1294),o(1296),o(1298),o(1300),o(1302),o(1304),o(1306),o(1308),o(1310),o(1312),o(1314),o(1316),o(1318),o(1320),o(1322),o(1324),o(1326),o(1328),o(1330),o(1332),o(1334),o(1336),o(1338),o(1340)},1284:function(n,t,o){},1286:function(n,t,o){},1288:function(n,t,o){},1290:function(n,t,o){},1292:function(n,t,o){},1294:function(n,t,o){},1296:function(n,t,o){},1298:function(n,t,o){},1300:function(n,t,o){},1302:function(n,t,o){},1304:function(n,t,o){},1306:function(n,t,o){},1308:function(n,t,o){},1310:function(n,t,o){},1312:function(n,t,o){},1314:function(n,t,o){},1316:function(n,t,o){},1318:function(n,t,o){},1320:function(n,t,o){},1322:function(n,t,o){},1324:function(n,t,o){},1326:function(n,t,o){},1328:function(n,t,o){},1330:function(n,t,o){},1332:function(n,t,o){},1334:function(n,t,o){},1336:function(n,t,o){},1338:function(n,t,o){},1340:function(n,t,o){}});
|
|
||||||
//# sourceMappingURL=engineStyle.bundle.js.map
|
|
6070
dist/engineStyle.css
vendored
6070
dist/engineStyle.css
vendored
File diff suppressed because it is too large
Load Diff
2
dist/ext/MathJax-3.2.0/.github/FUNDING.yml
vendored
Normal file
2
dist/ext/MathJax-3.2.0/.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
github: [numfocus]
|
||||||
|
custom: ['https://numfocus.org/donate-to-mathjax']
|
36
dist/ext/MathJax-3.2.0/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
36
dist/ext/MathJax-3.2.0/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Issue Summary
|
||||||
|
|
||||||
|
A summary of the issue and the browser/OS environment in which it occurs. If
|
||||||
|
suitable, include the steps required to reproduce the bug.
|
||||||
|
|
||||||
|
### Steps to Reproduce:
|
||||||
|
|
||||||
|
1. This is the first step
|
||||||
|
2. This is the second step
|
||||||
|
3. Further steps, etc.
|
||||||
|
|
||||||
|
Any other information you want to share that is relevant to the issue
|
||||||
|
being reported. Especially, why do you consider this to be a bug? What
|
||||||
|
do you expect to happen instead?
|
||||||
|
|
||||||
|
### Technical details:
|
||||||
|
|
||||||
|
* MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c)
|
||||||
|
* Client OS: Mac OS X 10.8.4
|
||||||
|
* Browser: Chrome 29.0.1547.57
|
||||||
|
|
||||||
|
### Supporting information:
|
||||||
|
|
||||||
|
* Please supply a link to a (live) minimal example page, when possible.
|
||||||
|
* If your issue is with the display of the mathematics produced by MathJax, include a screen snapshot that illustrates the problem, when possible.
|
||||||
|
* Check your browser console window for any error messages, and include them here.
|
||||||
|
* Include the MathJax configuration you are using, and the script tag that loads MathJax itself.
|
20
dist/ext/MathJax-3.2.0/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
dist/ext/MathJax-3.2.0/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
2
dist/ext/MathJax-3.2.0/.gitignore
vendored
Normal file
2
dist/ext/MathJax-3.2.0/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.DS_Store
|
||||||
|
|
16
dist/ext/MathJax-3.2.0/.travis.yml
vendored
Normal file
16
dist/ext/MathJax-3.2.0/.travis.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- stable
|
||||||
|
sudo: false
|
||||||
|
script:
|
||||||
|
- npm test
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- "/^\\d+\\.\\d+/"
|
||||||
|
deploy:
|
||||||
|
provider: npm
|
||||||
|
email: manager@mathjax.org
|
||||||
|
api_key:
|
||||||
|
secure: rdvJ27qbw4DZJl49NSf/ybkeHWNWnk2MajS8Y8bMKwI8RaDyEGcAm3frA+CfBw+YHWl71KRJlQHL69YgVwp1nMSzKrGOpwrbL3TMFrFMdBC6tJ30dX1HSvAg9eU5K12E5672MM8qkTwJdYXsvEcyYlzRR+sogR8jTWRl3APuAwY=
|
||||||
|
on:
|
||||||
|
tags: true
|
314
dist/ext/MathJax-3.2.0/CONTRIBUTING.md
vendored
Normal file
314
dist/ext/MathJax-3.2.0/CONTRIBUTING.md
vendored
Normal file
@ -0,0 +1,314 @@
|
|||||||
|
# Contributing to MathJax
|
||||||
|
|
||||||
|
You are interested in giving us a hand? That's awesome! We've put
|
||||||
|
together some brief guidelines that should help you get started
|
||||||
|
quickly and easily.
|
||||||
|
|
||||||
|
There are lots and lots of ways to get involved, this document covers:
|
||||||
|
|
||||||
|
* [reporting an issue](#reporting-an-issue)
|
||||||
|
* [bug reports](#bug-reports)
|
||||||
|
* [feature requests](#feature-requests)
|
||||||
|
* [change requests](#change-requests)
|
||||||
|
* [working on MathJax core](#working-on-mathjax-core)
|
||||||
|
* [key branches and tags](#key-branches--tags)
|
||||||
|
* [submitting pull requests](#submitting-pull-requests)
|
||||||
|
* [testing and quality assurance](#testing-and-quality-assurance)
|
||||||
|
* [writing documentation](#writing-documentation)
|
||||||
|
* [translation](#translation)
|
||||||
|
* [Conduct](#conduct)
|
||||||
|
|
||||||
|
|
||||||
|
## Reporting An Issue
|
||||||
|
|
||||||
|
If you're about to raise an issue because you think you've found a
|
||||||
|
problem with MathJax, or you'd like to make a request for a new
|
||||||
|
feature in the codebase, or any other reason, please read this first.
|
||||||
|
|
||||||
|
The [MathJax issue
|
||||||
|
tracker](https://github.com/mathjax/MathJax/issues) is the
|
||||||
|
preferred channel for [bug reports](#bug-reports), [feature
|
||||||
|
requests](#feature-requests), [change requests](#change-requests), and
|
||||||
|
[submitting pull requests](#submitting-pull-requests), but please
|
||||||
|
respect the following restrictions:
|
||||||
|
|
||||||
|
* Please **search for existing issues**. Help us keep duplicate issues
|
||||||
|
to a minimum by checking to see if someone has already reported your
|
||||||
|
problem or requested your idea.
|
||||||
|
|
||||||
|
* Please **do not** use the issue tracker for personal support
|
||||||
|
requests (use [the MathJax User Group](https://groups.google.com/forum/#!forum/mathjax-users)).
|
||||||
|
|
||||||
|
* Please **be civil**. Keep the discussion on topic and respect the
|
||||||
|
opinions of others. See also our [Conduct Guidelines](#conduct)
|
||||||
|
|
||||||
|
### Bug Reports
|
||||||
|
|
||||||
|
A bug is a *demonstrable problem* that is caused by the code in the
|
||||||
|
repository. Good bug reports are extremely helpful — thank you!
|
||||||
|
|
||||||
|
Guidelines for bug reports:
|
||||||
|
|
||||||
|
1. **Use the GitHub issue search** — check if the issue has already been
|
||||||
|
reported.
|
||||||
|
|
||||||
|
2. **Check if the issue has been fixed** — look for [closed
|
||||||
|
issues in the current
|
||||||
|
milestone](https://github.com/mathjax/MathJax/issues?q=is%3Aclosed)
|
||||||
|
or try to reproduce it using the latest `develop` branch. Please
|
||||||
|
note that you will need to
|
||||||
|
[compile MathJax and make the components](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
|
||||||
|
in order to test MathJax from the source repository.
|
||||||
|
|
||||||
|
3. **Share a live sample of the problem** — without a live page
|
||||||
|
it is usually impossible to debug problems; see also the [Bug Report
|
||||||
|
Template](#template) below.
|
||||||
|
|
||||||
|
4. **Isolate the problem** — a live sample is a starting point
|
||||||
|
but if you want to speed things up, create a [reduced test
|
||||||
|
case](http://css-tricks.com/6263-reduced-test-cases/). Be specific
|
||||||
|
about your setup (browser, OS versions, etc). Use services like
|
||||||
|
[jsbin](http://jsbin.com), [CodePen](http://codepen.io), or
|
||||||
|
[jsFiddle](http://jsfiddle.com) to make collaboration on minimal
|
||||||
|
test cases easier for everyone.
|
||||||
|
|
||||||
|
5. **Include a screenshot/cast as a last resort** — Is your
|
||||||
|
issue about a layout or design feature or bug that is hard to reproduce
|
||||||
|
or isolate? Then please provide a screenshot or screencast. Tools
|
||||||
|
like [LICEcap](http://www.cockos.com/licecap/) or
|
||||||
|
[SauceLabs](http://www.saucelabs.com) allow you to quickly and
|
||||||
|
easily record a screencasts. If you make it an animated gif, you can
|
||||||
|
embed it directly into your GitHub issue.
|
||||||
|
|
||||||
|
6. Use the [Bug Report Template](#template) below or [click this
|
||||||
|
link](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)
|
||||||
|
to start creating a bug report with the template automatically.
|
||||||
|
|
||||||
|
A good bug report shouldn't leave others needing to request
|
||||||
|
more information from you. Be sure to include the details of your environment.
|
||||||
|
|
||||||
|
<a id="template"></a>
|
||||||
|
|
||||||
|
Template Example ([click to use](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)):
|
||||||
|
|
||||||
|
```
|
||||||
|
Short and descriptive example bug report title
|
||||||
|
|
||||||
|
### Issue Summary
|
||||||
|
|
||||||
|
A summary of the issue and the browser/OS environment in which it occurs. If
|
||||||
|
suitable, include the steps required to reproduce the bug.
|
||||||
|
|
||||||
|
### Steps to Reproduce
|
||||||
|
|
||||||
|
1. This is the first step
|
||||||
|
2. This is the second step
|
||||||
|
3. Further steps, etc.
|
||||||
|
|
||||||
|
Any other information you want to share that is relevant to the issue
|
||||||
|
being reported. Especially, why do you consider this to be a bug? What
|
||||||
|
do you expect to happen instead?
|
||||||
|
|
||||||
|
### Technical details:
|
||||||
|
|
||||||
|
* MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c)
|
||||||
|
* Client OS: Mac OS X 10.8.4
|
||||||
|
* Browser: Chrome 29.0.1547.57
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Feature Requests
|
||||||
|
|
||||||
|
Feature requests are welcome. Before you submit one, be sure to have:
|
||||||
|
|
||||||
|
1. **Used the GitHub search** to check that the feature hasn't already
|
||||||
|
been requested.
|
||||||
|
2. Take a moment to think about whether your idea fits with the scope
|
||||||
|
and aims of the project, or if it might better fit being a [custom
|
||||||
|
extension](https://github.com/mathjax/MathJax-third-party-extensions).
|
||||||
|
3. Remember, it's up to *you* to make a strong case to convince the
|
||||||
|
project's leaders of the merits of this feature. Please provide as
|
||||||
|
much detail and context as possible, this means explaining the use
|
||||||
|
case and why it is likely to be common.
|
||||||
|
|
||||||
|
### Change Requests
|
||||||
|
|
||||||
|
Change requests cover both architectural and functional changes to how
|
||||||
|
MathJax works. If you have an idea for a new or different dependency,
|
||||||
|
a refactor, or an improvement to a feature, etc., please be sure to:
|
||||||
|
|
||||||
|
1. **Use the GitHub search** to check that someone else didn't get there first.
|
||||||
|
2. Take a moment to think about the best way to make a case for, and
|
||||||
|
explain what you're thinking. Are you sure this shouldn't really be
|
||||||
|
a [bug report](#bug-reports) or a [feature
|
||||||
|
request](#feature-requests)? Is it really one idea or is it many?
|
||||||
|
What's the context? What problem are you solving? Why is what you
|
||||||
|
are suggesting better than what's already there?
|
||||||
|
|
||||||
|
## Working on MathJax core
|
||||||
|
|
||||||
|
You want to contribute code? We describe how below. First, note that
|
||||||
|
the MathJax source code is in the
|
||||||
|
<https://github.com/mathjax/MathJax-src> repository, not the
|
||||||
|
<https://github.com/mathjax/MathJax> repository, which contains the
|
||||||
|
packaged component files for distribution on CDNs and the [mathjax npm
|
||||||
|
package](https://www.npmjs.com/package/mathjax) (the source code is
|
||||||
|
included in the [mathjax-full npm
|
||||||
|
package](https://www.npmjs.com/package/mathjax-full)).
|
||||||
|
|
||||||
|
### Key Branches & Tags
|
||||||
|
|
||||||
|
MathJax uses several permanent branches in the [MathJax source repository](https://github.com/mathjax/MathJax-src):
|
||||||
|
|
||||||
|
- **[develop](https://github.com/mathjax/MathJax-src/tree/develop)**
|
||||||
|
is the development branch. All work on the next release happens here
|
||||||
|
so you should generally branch off `develop` if you are going to
|
||||||
|
submit a pull request. Do **NOT** use this branch for a production
|
||||||
|
site.
|
||||||
|
|
||||||
|
- **[master](https://github.com/mathjax/MathJax-src)** contains the latest
|
||||||
|
release of MathJax. This branch may be used in production. Do
|
||||||
|
**NOT** use this branch to work on MathJax's source.
|
||||||
|
|
||||||
|
These branches reflect version 3 of MathJax, which is substantially
|
||||||
|
different from the version 2 codebase. Version 2 will continue to be
|
||||||
|
maintained while web sites transition to version 3, with work being
|
||||||
|
done using the following branches in the [MathJax distribution
|
||||||
|
repository](https://github.com/mathjax/MathJax):
|
||||||
|
|
||||||
|
- **[legacy-v2-develop](https://github.com/mathjax/MathJax/tree/legacy-v2-develop)**
|
||||||
|
is the development branch for changes to the legacy version 2 code.
|
||||||
|
Any pull requests for version 2 should be branched from here. Do
|
||||||
|
**NOT** use this branch for a production site.
|
||||||
|
|
||||||
|
- **[legacy-v2](https://github.com/mathjax/MathJax/tree/legacy-v2)**
|
||||||
|
is the branch that contains any updates to version 2 following
|
||||||
|
the release of version 3. Do **NOT** use this branch to work on
|
||||||
|
MathJax's source.
|
||||||
|
|
||||||
|
In addition to these branches, MathJax uses tags to identify the
|
||||||
|
various versions. These can be checked out to obtain the specified
|
||||||
|
release; for example, `git checkout 2.7.5` would get you the files for
|
||||||
|
version 2.7.5 of MathJax.
|
||||||
|
|
||||||
|
Note that version 3 is written in Typescript, and so must be compiled
|
||||||
|
to obtain usable javascript files, and that the components need to be
|
||||||
|
built once that is done. See the
|
||||||
|
[documentation](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
|
||||||
|
for details. For version 2, the source javascript files are not
|
||||||
|
compressed until a release is made, so you should use the copies in
|
||||||
|
the `unpacked` directory during development.
|
||||||
|
|
||||||
|
|
||||||
|
### Submitting Pull Requests
|
||||||
|
|
||||||
|
Pull requests are welcome. If you're looking to submit a PR for
|
||||||
|
something that doesn't have an open issue, please consider [raising an
|
||||||
|
issue](#reporting-an-issue) that your PR can close, especially if
|
||||||
|
you're fixing a bug. This makes it more likely that there will be
|
||||||
|
enough information available for your PR to be properly tested and
|
||||||
|
merged.
|
||||||
|
|
||||||
|
##### Need Help?
|
||||||
|
|
||||||
|
If you're not completely clear on how to submit/update/*do* Pull
|
||||||
|
Requests, please check out our [source control
|
||||||
|
policies](https://github.com/mathjax/MathJax/wiki/Source-control-policies). For
|
||||||
|
more insights, check the excellent in depth [Git Workflow
|
||||||
|
guide](https://github.com/TryGhost/Ghost/wiki/Git-Workflow) from
|
||||||
|
Ghost, in particular
|
||||||
|
|
||||||
|
* [Ghost Workflow guide: commit messages](https://github.com/TryGhost/Ghost/wiki/Git-workflow#commit-messages)
|
||||||
|
|
||||||
|
### Testing and Quality Assurance
|
||||||
|
|
||||||
|
If you're
|
||||||
|
looking to get involved with the code base and don't know where to
|
||||||
|
start, checking out and testing a pull request is one of the most
|
||||||
|
useful things you could do.
|
||||||
|
|
||||||
|
These are some [excellent
|
||||||
|
instructions](https://gist.github.com/piscisaureus/3342247) on
|
||||||
|
configuring your GitHub repository to allow you to checkout pull
|
||||||
|
requests in the same way as branches.
|
||||||
|
|
||||||
|
|
||||||
|
### Writing documentation
|
||||||
|
|
||||||
|
MathJax's main documentation can be found at [docs.mathjax.org](http://docs.mathjax.org).
|
||||||
|
The source of the docs is hosted in the
|
||||||
|
[mathjax/MathJax-docs](http://github.com/mathjax/MathJax-docs) repo here on GitHub.
|
||||||
|
|
||||||
|
The documentation is generated using
|
||||||
|
[Sphinx-doc](http://sphinx-doc.org/) and hosted on [Read the
|
||||||
|
docs](http://readthedocs.org). You can clone the repo and submit pull
|
||||||
|
requests following the [pull-request](#submitting-pull-requests)
|
||||||
|
guidelines.
|
||||||
|
|
||||||
|
|
||||||
|
### Translation
|
||||||
|
|
||||||
|
If you wish to add or update translations of MathJax, please do it on
|
||||||
|
[TranslateWiki.net](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all)
|
||||||
|
(and while you're there you can help other open source projects,
|
||||||
|
too).
|
||||||
|
|
||||||
|
For bug reports and other questions that don't fit on
|
||||||
|
TranslateWiki.net, head over to the
|
||||||
|
[mathjax/mathjax-i18n](https://github.com/mathjax/MathJax-i18n)
|
||||||
|
repository.
|
||||||
|
|
||||||
|
The translation files currently are for version 2, as localization
|
||||||
|
hasn't been added to version 3 yet.
|
||||||
|
|
||||||
|
## Conduct
|
||||||
|
|
||||||
|
As a NumFOCUS fiscally sponsored project, MathJax is governed by the
|
||||||
|
[NumFOCUS code of conduct](https://numfocus.org/code-of-conduct),
|
||||||
|
which we summarize as follows:
|
||||||
|
|
||||||
|
We are committed to providing a friendly, safe and welcoming
|
||||||
|
environment for all, regardless of gender, sexual orientation,
|
||||||
|
disability, ethnicity, religion, or similar personal characteristic.
|
||||||
|
|
||||||
|
Please be kind and courteous. There's no need to be mean or rude.
|
||||||
|
Respect that people have differences of opinion and that every design
|
||||||
|
or implementation choice carries a trade-off and numerous costs. There
|
||||||
|
is seldom a right answer, merely an optimal answer given a set of
|
||||||
|
values and circumstances.
|
||||||
|
|
||||||
|
Please keep unstructured critique to a minimum. If you have solid
|
||||||
|
ideas you want to experiment with, make a fork and see how it works.
|
||||||
|
|
||||||
|
We will exclude you from interaction if you insult, demean or harass
|
||||||
|
anyone. That is not welcome behaviour. We interpret the term
|
||||||
|
"harassment" as including the definition in the [Unacceptable
|
||||||
|
Behavior](https://numfocus.org/code-of-conduct#unacceptable-behavior)
|
||||||
|
section of the [NumFOCUS code of
|
||||||
|
conduct](https://numfocus.org/code-of-conduct); if you have any lack
|
||||||
|
of clarity about what might be included in that concept, please read
|
||||||
|
that definition. In particular, we don't tolerate behavior that
|
||||||
|
excludes people in socially marginalized groups.
|
||||||
|
|
||||||
|
Private harassment is also unacceptable. No matter who you are, if you
|
||||||
|
feel you have been or are being harassed or made uncomfortable by a
|
||||||
|
community member, please contact one of the channel ops or any of the
|
||||||
|
[MathJax](https://github.com/MathJax/MathJax) core team
|
||||||
|
immediately. Whether you're a regular contributor or a newcomer, we
|
||||||
|
care about making this community a safe place for you and we've got
|
||||||
|
your back.
|
||||||
|
|
||||||
|
Likewise any spamming, trolling, flaming, baiting, or other
|
||||||
|
attention-stealing behaviour is not welcome.
|
||||||
|
|
||||||
|
We also recommend that you read [discourse's
|
||||||
|
rules](http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/)
|
||||||
|
for further suggestions on appropriate behavior.
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
* We heavily borrowed from Mozilla and Ghost -- thank you!
|
||||||
|
* <https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md>
|
||||||
|
* <https://github.com/mozilla/rust/wiki/Note-development-policy>
|
||||||
|
* <https://github.com/jden/CONTRIBUTING.md/blob/master/CONTRIBUTING.md>
|
||||||
|
* <http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/>
|
202
dist/ext/MathJax-3.2.0/LICENSE
vendored
Normal file
202
dist/ext/MathJax-3.2.0/LICENSE
vendored
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
237
dist/ext/MathJax-3.2.0/README.md
vendored
Normal file
237
dist/ext/MathJax-3.2.0/README.md
vendored
Normal file
@ -0,0 +1,237 @@
|
|||||||
|
# MathJax
|
||||||
|
## Beautiful math in all browsers
|
||||||
|
|
||||||
|
![GitHub release version](https://img.shields.io/github/v/release/mathjax/MathJax-src.svg?sort=semver)
|
||||||
|
![GitHub release version (v2)](https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2.svg?label=release-v2)
|
||||||
|
![NPM version](https://img.shields.io/npm/v/mathjax.svg?style=flat)
|
||||||
|
<a href="http://www.numfocus.org">![powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat)</a>
|
||||||
|
![jsdelivr rank](https://flat.badgen.net/jsdelivr/rank/npm/mathjax?color=green)
|
||||||
|
![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/mathjax)
|
||||||
|
![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax?label=npm)
|
||||||
|
![npm total downloads](https://img.shields.io/npm/dt/mathjax.svg?style=flat&label=npm%20total)
|
||||||
|
|
||||||
|
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
|
||||||
|
and AsciiMath notation that works in all modern browsers. It was
|
||||||
|
designed with the goal of consolidating the recent advances in web
|
||||||
|
technologies into a single, definitive, math-on-the-web platform
|
||||||
|
supporting the major browsers and operating systems. It requires no
|
||||||
|
setup on the part of the user (no plugins to download or software to
|
||||||
|
install), so the page author can write web documents that include
|
||||||
|
mathematics and be confident that users will be able to view it
|
||||||
|
naturally and easily. Simply include MathJax and some mathematics in
|
||||||
|
a web page, and MathJax does the rest.
|
||||||
|
|
||||||
|
Some of the main features of MathJax include:
|
||||||
|
|
||||||
|
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
|
||||||
|
|
||||||
|
- Supported in most browsers with no plug-ins, extra fonts, or special
|
||||||
|
setup for the reader
|
||||||
|
|
||||||
|
- Easy for authors, flexible for publishers, extensible for developers
|
||||||
|
|
||||||
|
- Supports math accessibility, cut-and-paste interoperability, and other
|
||||||
|
advanced functionality
|
||||||
|
|
||||||
|
- Powerful API for integration with other web applications
|
||||||
|
|
||||||
|
See <http://www.mathjax.org/> for additional details about MathJax,
|
||||||
|
and <https://docs.mathjax.org> for the MathJax documentation.
|
||||||
|
|
||||||
|
## MathJax Components
|
||||||
|
|
||||||
|
MathJax version 3 uses files called *components* that contain the
|
||||||
|
various MathJax modules that you can include in your web pages or
|
||||||
|
access on a server through NodeJS. Some components combine all the
|
||||||
|
pieces you need to run MathJax with one or more input formats and a
|
||||||
|
particular output format, while other components are pieces that can
|
||||||
|
be loaded on demand when needed, or by a configuration that specifies
|
||||||
|
the pieces you want to combine in a custom way. For usage
|
||||||
|
instructions, see the [MathJax documentation](https://docs.mathjax.org).
|
||||||
|
|
||||||
|
Components provide a convenient packaging of MathJax's modules, but it
|
||||||
|
is possible for you to form your own custom components, or to use
|
||||||
|
MathJax's modules directly in a node application on a server. There
|
||||||
|
are [web examples](https://github.com/mathjax/MathJax-demos-web)
|
||||||
|
showing how to use MathJax in web pages and how to build your own
|
||||||
|
components, and [node
|
||||||
|
examples](https://github.com/mathjax/MathJax-demos-node) illustrating
|
||||||
|
how to use components in node applications or call MathJax modules
|
||||||
|
directly.
|
||||||
|
|
||||||
|
## What's in this Repository
|
||||||
|
|
||||||
|
This repository contains only the component files for MathJax, not the
|
||||||
|
source code for MathJax (which are available in a separate [MathJax
|
||||||
|
source repository](https://github.com/mathjax/MathJax-src/)). These
|
||||||
|
component files are the ones served by the CDNs that offer MathJax to
|
||||||
|
the web. In version 2, the files used on the web were also the source
|
||||||
|
files for MathJax, but in version 3, the source files are no longer on
|
||||||
|
the CDN, as they are not what are run in the browser.
|
||||||
|
|
||||||
|
The components are stored in the `es5` directory, and are in ES5 format
|
||||||
|
for the widest possible compatibility. In the future, we may make an
|
||||||
|
`es6` directory containing ES6 versions of the components.
|
||||||
|
|
||||||
|
## Installation and Use
|
||||||
|
|
||||||
|
### Using MathJax components from a CDN on the web
|
||||||
|
|
||||||
|
If you are loading MathJax from a CDN into a web page, there is no
|
||||||
|
need to install anything. Simply use a `script` tag that loads
|
||||||
|
MathJax from the CDN. E.g.,
|
||||||
|
|
||||||
|
``` html
|
||||||
|
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
See the [MathJax
|
||||||
|
documentation](https://docs.mathjax.org/en/latest/index.html#browser-components),
|
||||||
|
the [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web),
|
||||||
|
and the [MathJax Component
|
||||||
|
Repository](https://github.com/mathjax/MathJax-demos-web) for more information.
|
||||||
|
|
||||||
|
### Hosting your own copy of the MathJax Components
|
||||||
|
|
||||||
|
If you want to host MathJax from your own server, you can do so by
|
||||||
|
installing the `mathjax` package using `npm` and moving the `es5`
|
||||||
|
directory to an appropriate location on your server:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
npm install mathjax@3
|
||||||
|
mv node_modules/mathjax/es5 <path-to-server-location>/mathjax
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that we are still making updates to version 2, so include `@3`
|
||||||
|
when you install, since the latest chronological version may not be
|
||||||
|
version 3.
|
||||||
|
|
||||||
|
Alternatively, you can get the files via GitHub:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
git clone https://github.com/mathjax/MathJax.git mj-tmp
|
||||||
|
mv mj-tmp/es5 <path-to-server-location>/mathjax
|
||||||
|
rm -rf mj-tmp
|
||||||
|
```
|
||||||
|
|
||||||
|
Then (in either case) you can use a script tag like the following:
|
||||||
|
|
||||||
|
``` html
|
||||||
|
<script id="MathJax-script" async src="<url-to-your-site>/mathjax/tex-chtml.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
where `<url-to-your-site>` is replaced by the URL to the location
|
||||||
|
where you moved the MathJax files above.
|
||||||
|
|
||||||
|
See the
|
||||||
|
[documentation](https://docs.mathjax.org/en/latest/web/hosting.html)
|
||||||
|
for details.
|
||||||
|
|
||||||
|
### Using MathJax components in a node application
|
||||||
|
|
||||||
|
To use MathJax components in a node application, install the `mathjax` package:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
npm install mathjax@3
|
||||||
|
```
|
||||||
|
|
||||||
|
(we are still making updates to version 2, so you should include `@3`
|
||||||
|
since the latest chronological version may not be version 3).
|
||||||
|
|
||||||
|
Then require `mathjax` within your application:
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('mathjax').init({ ... }).then((MathJax) => { ... });
|
||||||
|
```
|
||||||
|
|
||||||
|
where the first `{ ... }` is a MathJax configuration, and the second
|
||||||
|
`{ ... }` is the code to run after MathJax has been loaded. E.g.
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('mathjax').init({
|
||||||
|
loader: {load: ['input/tex', 'output/svg']}
|
||||||
|
}).then((MathJax) => {
|
||||||
|
const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true});
|
||||||
|
console.log(MathJax.startup.adaptor.outerHTML(svg));
|
||||||
|
}).catch((err) => console.log(err.message));
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** this technique is for node-based application only, not for
|
||||||
|
browser applications. This method sets up an alternative DOM
|
||||||
|
implementation, which you don't need in the browser, and tells MathJax
|
||||||
|
to use node's `require()` command to load external modules. This
|
||||||
|
setup will not work properly in the browser, even if you webpack it or
|
||||||
|
bundle it in other ways.
|
||||||
|
|
||||||
|
See the
|
||||||
|
[documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs)
|
||||||
|
and the [MathJax Node
|
||||||
|
Repository](https://github.com/mathjax/MathJax-demos-node) for more details.
|
||||||
|
|
||||||
|
## Reducing the Size of the Components Directory
|
||||||
|
|
||||||
|
Since the `es5` directory contains *all* the component files, so if
|
||||||
|
you are only planning one use one configuration, you can reduce the
|
||||||
|
size of the MathJax directory by removing unused components. For
|
||||||
|
example, if you are using the `tex-chtml.js` component, then you can
|
||||||
|
remove the `tex-mml-chtml.js`, `tex-svg.js`, `tex-mml-svg.js`,
|
||||||
|
`tex-chtml-full.js`, and `tex-svg-full.js` configurations, which will
|
||||||
|
save considerable space. Indeed, you should be able to remove
|
||||||
|
everything other than `tex-chtml.js`, and the `input/tex/extensions`,
|
||||||
|
`output/chtml/fonts/woff-v2`, `adaptors`, `a11y`, and `sre`
|
||||||
|
directories. If you are using the results only on the web, you can
|
||||||
|
remove `adaptors` as well.
|
||||||
|
|
||||||
|
If you are not using A11Y support (e.g., speech generation, or
|
||||||
|
semantic enrichment), then you can remove `a11y` and `sre` as well
|
||||||
|
(though in this case you may need to disable the assistive tools in
|
||||||
|
the MathJax contextual menu in order to avoid MathJax trying to load
|
||||||
|
them when they aren't there).
|
||||||
|
|
||||||
|
If you are using SVG rather than CommonHTML output (e.g., `tex-svg.js`
|
||||||
|
rather than `tex-chtml.js`), you can remove the
|
||||||
|
`output/chtml/fonts/woff-v2` directory. If you are using MathML input
|
||||||
|
rather than TeX (e.g., `mml-chtml.js` rather than `tex-chtml.js`),
|
||||||
|
then you can remove `input/tex/extensions` as well.
|
||||||
|
|
||||||
|
|
||||||
|
## The Component Files and Pull Requests
|
||||||
|
|
||||||
|
The `es5` directory is generated automatically from the contents of the
|
||||||
|
MathJax source repository. You can rebuild the components using the
|
||||||
|
command
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
npm run make-es5 --silent
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that since the contents of this repository are generated
|
||||||
|
automatically, you should not submit pull requests that modify the
|
||||||
|
contents of the `es5` directory. If you wish to submit a modification
|
||||||
|
to MathJax, you should make a pull request in the [MathJax source
|
||||||
|
repository](https://github.com/mathjax/MathJax-src).
|
||||||
|
|
||||||
|
## MathJax Community
|
||||||
|
|
||||||
|
The main MathJax website is <http://www.mathjax.org>, and it includes
|
||||||
|
announcements and other important information. A [MathJax user
|
||||||
|
forum](http://groups.google.com/group/mathjax-users) for asking
|
||||||
|
questions and getting assistance is hosted at Google, and the [MathJax
|
||||||
|
bug tracker](https://github.com/mathjax/MathJax/issues) is hosted
|
||||||
|
at GitHub.
|
||||||
|
|
||||||
|
Before reporting a bug, please check that it has not already been
|
||||||
|
reported. Also, please use the bug tracker (rather than the help
|
||||||
|
forum) for reporting bugs, and use the user's forum (rather than the
|
||||||
|
bug tracker) for questions about how to use MathJax.
|
||||||
|
|
||||||
|
## MathJax Resources
|
||||||
|
|
||||||
|
* [MathJax Documentation](https://docs.mathjax.org)
|
||||||
|
* [MathJax Components](https://github.com/mathjax/MathJax)
|
||||||
|
* [MathJax Source Code](https://github.com/mathjax/MathJax-src)
|
||||||
|
* [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web)
|
||||||
|
* [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node)
|
||||||
|
* [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues)
|
||||||
|
* [MathJax Users' Group](http://groups.google.com/group/mathjax-users)
|
||||||
|
|
11
dist/ext/MathJax-3.2.0/bower.json
vendored
Normal file
11
dist/ext/MathJax-3.2.0/bower.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "MathJax",
|
||||||
|
"main": "./MathJax.js",
|
||||||
|
"homepage": "http://www.mathjax.org/",
|
||||||
|
"ignore": [
|
||||||
|
"**/.*",
|
||||||
|
"node_modules",
|
||||||
|
"components"
|
||||||
|
],
|
||||||
|
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"]
|
||||||
|
}
|
14
dist/ext/MathJax-3.2.0/composer.json
vendored
Normal file
14
dist/ext/MathJax-3.2.0/composer.json
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "mathjax/mathjax",
|
||||||
|
"type": "library",
|
||||||
|
"description": "MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.",
|
||||||
|
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"],
|
||||||
|
"homepage": "http://www.mathjax.org/",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "MathJax Consortium",
|
||||||
|
"homepage": "https://github.com/mathjax"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
1
dist/ext/MathJax-3.2.0/es5/a11y/assistive-mml.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/a11y/assistive-mml.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/a11y/complexity.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/a11y/complexity.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/a11y/explorer.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/a11y/explorer.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/a11y/semantic-enrich.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/a11y/semantic-enrich.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/adaptors/liteDOM.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/adaptors/liteDOM.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/core.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/core.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/asciimath.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/asciimath.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/mml.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/mml.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/mml/entities.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/mml/entities.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/mml/extensions/mml3.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/mml/extensions/mml3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/mml/extensions/mml3.sef.json
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/mml/extensions/mml3.sef.json
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex-base.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex-base.js
vendored
Normal file
File diff suppressed because one or more lines are too long
34
dist/ext/MathJax-3.2.0/es5/input/tex-full.js
vendored
Normal file
34
dist/ext/MathJax-3.2.0/es5/input/tex-full.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/action.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/action.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,o={669:function(t,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.ActionConfiguration=a.ActionMethods=void 0;var e=o(251),n=o(193),i=o(871),r=o(360);a.ActionMethods={},a.ActionMethods.Macro=r.default.Macro,a.ActionMethods.Toggle=function(t,a){for(var o,e=[];"\\endtoggle"!==(o=t.GetArgument(a));)e.push(new n.default(o,t.stack.env,t.configuration).mml());t.Push(t.create("node","maction",e,{actiontype:"toggle"}))},a.ActionMethods.Mathtip=function(t,a){var o=t.ParseArg(a),e=t.ParseArg(a);t.Push(t.create("node","maction",[o,e],{actiontype:"tooltip"}))},new i.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},a.ActionMethods),a.ActionConfiguration=e.Configuration.create("action",{handler:{macro:["action-macros"]}})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},193:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.TexParser.default},360:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.base.BaseMethods.default}},e={};function n(t){var a=e[t];if(void 0!==a)return a.exports;var i=e[t]={exports:{}};return o[t](i,i.exports,n),i.exports}t=n(955),a=n(669),(0,t.r8)({_:{input:{tex:{action:{ActionConfiguration:a}}}}})}();
|
34
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/all-packages.js
vendored
Normal file
34
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/all-packages.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/ams.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/ams.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/amscd.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/amscd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/autoload.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/autoload.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/bbox.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/bbox.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,e={133:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0}),a.BboxConfiguration=a.BboxMethods=void 0;var o=e(251),n=e(871),i=e(402);a.BboxMethods={},a.BboxMethods.BBox=function(t,a){for(var e,o,n,u=t.GetBrackets(a,""),l=t.ParseArg(a),x=u.split(/,/),M=0,c=x.length;M<c;M++){var s=x[M].trim(),f=s.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(f){if(e)throw new i.default("MultipleBBoxProperty","%1 specified twice in %2","Padding",a);var d=p(f[1]+f[3]);d&&(e={height:"+"+d,depth:"+"+d,lspace:d,width:"+"+2*parseInt(f[1],10)+f[3]})}else if(s.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(o)throw new i.default("MultipleBBoxProperty","%1 specified twice in %2","Background",a);o=s}else if(s.match(/^[-a-z]+:/i)){if(n)throw new i.default("MultipleBBoxProperty","%1 specified twice in %2","Style",a);n=r(s)}else if(""!==s)throw new i.default("InvalidBBoxProperty",'"%1" doesn\'t look like a color, a padding dimension, or a style',s)}e&&(l=t.create("node","mpadded",[l],e)),(o||n)&&(e={},o&&Object.assign(e,{mathbackground:o}),n&&Object.assign(e,{style:n}),l=t.create("node","mstyle",[l],e)),t.Push(l)};var r=function(t){return t},p=function(t){return t};new n.CommandMap("bbox",{bbox:"BBox"},a.BboxMethods),a.BboxConfiguration=o.Configuration.create("bbox",{handler:{macro:["bbox"]}})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},402:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.TexError.default}},o={};function n(t){var a=o[t];if(void 0!==a)return a.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,n),i.exports}t=n(955),a=n(133),(0,t.r8)({_:{input:{tex:{bbox:{BboxConfiguration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/boldsymbol.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/boldsymbol.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,o={986:function(t,a,o){var e=this&&this.__values||function(t){var a="function"==typeof Symbol&&Symbol.iterator,o=a&&t[a],e=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(a,"__esModule",{value:!0}),a.BoldsymbolConfiguration=a.rewriteBoldTokens=a.createBoldToken=a.BoldsymbolMethods=void 0;var n=o(251),r=o(748),i=o(108),l=o(871),s=o(348),u={};function d(t,a,o,e){var n=s.NodeFactory.createToken(t,a,o,e);return"mtext"!==a&&t.configuration.parser.stack.env.boldsymbol&&(r.default.setProperty(n,"fixBold",!0),t.configuration.addNode("fixBold",n)),n}function x(t){var a,o;try{for(var n=e(t.data.getList("fixBold")),l=n.next();!l.done;l=n.next()){var s=l.value;if(r.default.getProperty(s,"fixBold")){var d=r.default.getAttribute(s,"mathvariant");null==d?r.default.setAttribute(s,"mathvariant",i.TexConstant.Variant.BOLD):r.default.setAttribute(s,"mathvariant",u[d]||d),r.default.removeProperties(s,"fixBold")}}}catch(t){a={error:t}}finally{try{l&&!l.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}}u[i.TexConstant.Variant.NORMAL]=i.TexConstant.Variant.BOLD,u[i.TexConstant.Variant.ITALIC]=i.TexConstant.Variant.BOLDITALIC,u[i.TexConstant.Variant.FRAKTUR]=i.TexConstant.Variant.BOLDFRAKTUR,u[i.TexConstant.Variant.SCRIPT]=i.TexConstant.Variant.BOLDSCRIPT,u[i.TexConstant.Variant.SANSSERIF]=i.TexConstant.Variant.BOLDSANSSERIF,u["-tex-calligraphic"]="-tex-bold-calligraphic",u["-tex-oldstyle"]="-tex-bold-oldstyle",u["-tex-mathit"]=i.TexConstant.Variant.BOLDITALIC,a.BoldsymbolMethods={},a.BoldsymbolMethods.Boldsymbol=function(t,a){var o=t.stack.env.boldsymbol;t.stack.env.boldsymbol=!0;var e=t.ParseArg(a);t.stack.env.boldsymbol=o,t.Push(e)},new l.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},a.BoldsymbolMethods),a.createBoldToken=d,a.rewriteBoldTokens=x,a.BoldsymbolConfiguration=n.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:d},postprocessors:[x]})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},348:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.NodeFactory=MathJax._.input.tex.NodeFactory.NodeFactory},748:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.NodeUtil.default},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},108:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.TexConstant=MathJax._.input.tex.TexConstants.TexConstant}},e={};function n(t){var a=e[t];if(void 0!==a)return a.exports;var r=e[t]={exports:{}};return o[t].call(r.exports,r,r.exports,n),r.exports}t=n(955),a=n(986),(0,t.r8)({_:{input:{tex:{boldsymbol:{BoldsymbolConfiguration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/braket.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/braket.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/bussproofs.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/bussproofs.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/cancel.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/cancel.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,e={774:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0}),a.CancelConfiguration=a.CancelMethods=void 0;var n=e(251),o=e(108),i=e(871),c=e(398),r=e(975);a.CancelMethods={},a.CancelMethods.Cancel=function(t,a,e){var n=t.GetBrackets(a,""),o=t.ParseArg(a),i=c.default.keyvalOptions(n,r.ENCLOSE_OPTIONS);i.notation=e,t.Push(t.create("node","menclose",[o],i))},a.CancelMethods.CancelTo=function(t,a){var e=t.GetBrackets(a,""),n=t.ParseArg(a),i=t.ParseArg(a),l=c.default.keyvalOptions(e,r.ENCLOSE_OPTIONS);l.notation=[o.TexConstant.Notation.UPDIAGONALSTRIKE,o.TexConstant.Notation.UPDIAGONALARROW,o.TexConstant.Notation.NORTHEASTARROW].join(" "),n=t.create("node","mpadded",[n],{depth:"-.1em",height:"+.1em",voffset:".1em"}),t.Push(t.create("node","msup",[t.create("node","menclose",[i],l),n]))},new i.CommandMap("cancel",{cancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",o.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE+" "+o.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},a.CancelMethods),a.CancelConfiguration=n.Configuration.create("cancel",{handler:{macro:["cancel"]}})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},398:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.ParseUtil.default},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},108:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.TexConstant=MathJax._.input.tex.TexConstants.TexConstant},975:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.ENCLOSE_OPTIONS=MathJax._.input.tex.enclose.EncloseConfiguration.ENCLOSE_OPTIONS,a.EncloseMethods=MathJax._.input.tex.enclose.EncloseConfiguration.EncloseMethods,a.EncloseConfiguration=MathJax._.input.tex.enclose.EncloseConfiguration.EncloseConfiguration}},n={};function o(t){var a=n[t];if(void 0!==a)return a.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,o),i.exports}t=o(955),a=o(774),(0,t.r8)({_:{input:{tex:{cancel:{CancelConfiguration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/centernot.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/centernot.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var e,t,a={286:function(e,t,a){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],n=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CenternotConfiguration=t.filterCenterOver=void 0;var r=a(251),o=a(193),i=a(748),u=a(871),l=a(360);function p(e){var t,a,r=e.data;try{for(var o=n(r.getList("centerOver")),u=o.next();!u.done;u=o.next()){var l=u.value,p=i.default.getTexClass(l.childNodes[0].childNodes[0]);null!==p&&i.default.setProperties(l.parent.parent.parent.parent.parent.parent,{texClass:p})}}catch(e){t={error:e}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}}new u.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{\u29f8}}",1]},{CenterOver:function(e,t){var a="{"+e.GetArgument(t)+"}",n=e.ParseArg(t),r=new o.default(a,e.stack.env,e.configuration).mml(),i=e.create("node","TeXAtom",[new o.default(a,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[n],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[r])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",r),e.Push(i)},Macro:l.default.Macro}),t.filterCenterOver=p,t.CenternotConfiguration=r.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[p]})},955:function(e,t){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,t.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=MathJax._.input.tex.Configuration.Configuration,t.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,t.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=MathJax._.input.tex.NodeUtil.default},871:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,t.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,t.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,t.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,t.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,t.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,t.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,t.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=MathJax._.input.tex.TexParser.default},360:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=MathJax._.input.tex.base.BaseMethods.default}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return a[e].call(o.exports,o,o.exports,r),o.exports}e=r(955),t=r(286),(0,e.r8)({_:{input:{tex:{centernot:{CenternotConfiguration:t}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/color.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/color.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/colortbl.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/colortbl.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/colorv2.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/colorv2.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var o,a,t={888:function(o,a,t){Object.defineProperty(a,"__esModule",{value:!0}),a.ColorConfiguration=a.ColorV2Methods=void 0;var n=t(871),e=t(251);a.ColorV2Methods={Color:function(o,a){var t=o.GetArgument(a),n=o.stack.env.color;o.stack.env.color=t;var e=o.ParseArg(a);n?o.stack.env.color=n:delete o.stack.env.color;var r=o.create("node","mstyle",[e],{mathcolor:t});o.Push(r)}},new n.CommandMap("colorv2",{color:"Color"},a.ColorV2Methods),a.ColorConfiguration=e.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})},955:function(o,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap}},n={};function e(o){var a=n[o];if(void 0!==a)return a.exports;var r=n[o]={exports:{}};return t[o](r,r.exports,e),r.exports}o=e(955),a=e(888),(0,o.r8)({_:{input:{tex:{colorv2:{ColorV2Configuration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/configmacros.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/configmacros.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,e={359:function(t,a,e){var n,o=this&&this.__values||function(t){var a="function"==typeof Symbol&&Symbol.iterator,e=a&&t[a],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(a,"__esModule",{value:!0}),a.ConfigMacrosConfiguration=void 0;var i=e(251),r=e(74),p=e(871),l=e(945),s=e(924),u=e(432),c=e(975),M="configmacros-map",f="configmacros-env-map";a.ConfigMacrosConfiguration=i.Configuration.create("configmacros",{init:function(t){new p.CommandMap(M,{},{}),new p.EnvironmentMap(f,l.default.environment,{},{}),t.append(i.Configuration.local({handler:{macro:[M],environment:[f]},priority:3}))},config:function(t,a){!function(t){var a,e,n=t.parseOptions.handlers.retrieve(M),i=t.parseOptions.options.macros;try{for(var r=o(Object.keys(i)),p=r.next();!p.done;p=r.next()){var l=p.value,c="string"==typeof i[l]?[i[l]]:i[l],f=Array.isArray(c[2])?new s.Macro(l,u.default.MacroWithTemplate,c.slice(0,2).concat(c[2])):new s.Macro(l,u.default.Macro,c);n.add(l,f)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}}(a),function(t){var a,e,n=t.parseOptions.handlers.retrieve(f),i=t.parseOptions.options.environments;try{for(var r=o(Object.keys(i)),p=r.next();!p.done;p=r.next()){var l=p.value;n.add(l,new s.Macro(l,u.default.BeginEnv,[!0].concat(i[l])))}}catch(t){a={error:t}}finally{try{p&&!p.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}}(a)},items:(n={},n[c.BeginEnvItem.prototype.kind]=c.BeginEnvItem,n),options:{macros:r.expandable({}),environments:r.expandable({})}})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},74:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.isObject=MathJax._.util.Options.isObject,a.APPEND=MathJax._.util.Options.APPEND,a.REMOVE=MathJax._.util.Options.REMOVE,a.OPTIONS=MathJax._.util.Options.OPTIONS,a.Expandable=MathJax._.util.Options.Expandable,a.expandable=MathJax._.util.Options.expandable,a.makeArray=MathJax._.util.Options.makeArray,a.keys=MathJax._.util.Options.keys,a.copy=MathJax._.util.Options.copy,a.insert=MathJax._.util.Options.insert,a.defaultOptions=MathJax._.util.Options.defaultOptions,a.userOptions=MathJax._.util.Options.userOptions,a.selectOptions=MathJax._.util.Options.selectOptions,a.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,a.separateOptions=MathJax._.util.Options.separateOptions,a.lookup=MathJax._.util.Options.lookup},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},945:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.ParseMethods.default},924:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Symbol=MathJax._.input.tex.Symbol.Symbol,a.Macro=MathJax._.input.tex.Symbol.Macro},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},975:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.BeginEnvItem=MathJax._.input.tex.newcommand.NewcommandItems.BeginEnvItem},432:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.newcommand.NewcommandMethods.default}},n={};function o(t){var a=n[t];if(void 0!==a)return a.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,o),i.exports}t=o(955),a=o(359),(0,t.r8)({_:{input:{tex:{configmacros:{ConfigMacrosConfiguration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/enclose.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/enclose.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var a,t,e={272:function(a,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EncloseConfiguration=t.EncloseMethods=t.ENCLOSE_OPTIONS=void 0;var o=e(251),n=e(871),r=e(398);t.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},t.EncloseMethods={},t.EncloseMethods.Enclose=function(a,e){var o=a.GetArgument(e).replace(/,/g," "),n=a.GetBrackets(e,""),i=a.ParseArg(e),l=r.default.keyvalOptions(n,t.ENCLOSE_OPTIONS);l.notation=o,a.Push(a.create("node","menclose",[i],l))},new n.CommandMap("enclose",{enclose:"Enclose"},t.EncloseMethods),t.EncloseConfiguration=o.Configuration.create("enclose",{handler:{macro:["enclose"]}})},955:function(a,t){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,t.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=MathJax._.input.tex.Configuration.Configuration,t.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,t.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},398:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=MathJax._.input.tex.ParseUtil.default},871:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,t.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,t.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,t.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,t.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,t.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,t.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,t.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap}},o={};function n(a){var t=o[a];if(void 0!==t)return t.exports;var r=o[a]={exports:{}};return e[a](r,r.exports,n),r.exports}a=n(955),t=n(272),(0,a.r8)({_:{input:{tex:{enclose:{EncloseConfiguration:t}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/extpfeil.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/extpfeil.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,e,a={646:function(t,e,a){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtpfeilConfiguration=e.ExtpfeilMethods=void 0;var o=a(251),n=a(871),r=a(939),i=a(892),u=a(417),x=a(402);e.ExtpfeilMethods={},e.ExtpfeilMethods.xArrow=r.AmsMethods.xArrow,e.ExtpfeilMethods.NewExtArrow=function(t,a){var o=t.GetArgument(a),n=t.GetArgument(a),r=t.GetArgument(a);if(!o.match(/^\\([a-z]+|.)$/i))throw new x.default("NewextarrowArg1","First argument to %1 must be a control sequence name",a);if(!n.match(/^(\d+),(\d+)$/))throw new x.default("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",a);if(!r.match(/^(\d+|0x[0-9A-F]+)$/i))throw new x.default("NewextarrowArg3","Third argument to %1 must be a unicode character number",a);o=o.substr(1);var u=n.split(",");i.default.addMacro(t,o,e.ExtpfeilMethods.xArrow,[parseInt(r),parseInt(u[0]),parseInt(u[1])])},new n.CommandMap("extpfeil",{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"},e.ExtpfeilMethods);e.ExtpfeilConfiguration=o.Configuration.create("extpfeil",{handler:{macro:["extpfeil"]},init:function(t){u.NewcommandConfiguration.init(t)}})},955:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=MathJax._.input.tex.Configuration.Configuration,e.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,e.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,e.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,e.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,e.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,e.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,e.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,e.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,e.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},402:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.TexError.default},939:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AmsMethods=MathJax._.input.tex.ams.AmsMethods.AmsMethods,e.NEW_OPS=MathJax._.input.tex.ams.AmsMethods.NEW_OPS},417:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.NewcommandConfiguration=MathJax._.input.tex.newcommand.NewcommandConfiguration.NewcommandConfiguration},892:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.newcommand.NewcommandUtil.default}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return a[t](r,r.exports,n),r.exports}t=n(955),e=n(646),(0,t.r8)({_:{input:{tex:{extpfeil:{ExtpfeilConfiguration:e}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/gensymb.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/gensymb.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var a,t,n={82:function(a,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GensymbConfiguration=void 0;var e=n(251),o=n(108);new(n(871).CharacterMap)("gensymb-symbols",(function(a,t){var n=t.attributes||{};n.mathvariant=o.TexConstant.Variant.NORMAL,n.class="MathML-Unit";var e=a.create("token","mi",n,t.char);a.Push(e)}),{ohm:"\u2126",degree:"\xb0",celsius:"\u2103",perthousand:"\u2030",micro:"\xb5"}),t.GensymbConfiguration=e.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}})},955:function(a,t){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,t.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=MathJax._.input.tex.Configuration.Configuration,t.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,t.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,t.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,t.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,t.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,t.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,t.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,t.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,t.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},108:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TexConstant=MathJax._.input.tex.TexConstants.TexConstant}},e={};function o(a){var t=e[a];if(void 0!==t)return t.exports;var i=e[a]={exports:{}};return n[a](i,i.exports,o),i.exports}a=o(955),t=o(82),(0,a.r8)({_:{input:{tex:{gensymb:{GensymbConfiguration:t}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/html.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/html.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,e,n={738:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0}),a.HtmlConfiguration=void 0;var n=e(251),r=e(871),o=e(248);new r.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},o.default),a.HtmlConfiguration=n.Configuration.create("html",{handler:{macro:["html_macros"]}})},248:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0});var n=e(748),r={Href:function(t,a){var e=t.GetArgument(a),r=o(t,a);n.default.setAttribute(r,"href",e),t.Push(r)},Class:function(t,a){var e=t.GetArgument(a),r=o(t,a),i=n.default.getAttribute(r,"class");i&&(e=i+" "+e),n.default.setAttribute(r,"class",e),t.Push(r)},Style:function(t,a){var e=t.GetArgument(a),r=o(t,a),i=n.default.getAttribute(r,"style");i&&(";"!==e.charAt(e.length-1)&&(e+=";"),e=i+" "+e),n.default.setAttribute(r,"style",e),t.Push(r)},Id:function(t,a){var e=t.GetArgument(a),r=o(t,a);n.default.setAttribute(r,"id",e),t.Push(r)}},o=function(t,a){var e=t.ParseArg(a);if(!n.default.isInferred(e))return e;var r=n.default.getChildren(e);if(1===r.length)return r[0];var o=t.create("node","mrow");return n.default.copyChildren(e,o),n.default.copyAttributes(e,o),o};a.default=r},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},748:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.NodeUtil.default},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var e=r[t]={exports:{}};return n[t](e,e.exports,o),e.exports}t=o(955),a=o(738),e=o(248),(0,t.r8)({_:{input:{tex:{html:{HtmlConfiguration:a,HtmlMethods:e}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/mathtools.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/mathtools.js
vendored
Normal file
File diff suppressed because one or more lines are too long
34
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/mhchem.js
vendored
Normal file
34
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/mhchem.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/newcommand.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/newcommand.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/noerrors.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/noerrors.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var o,n,r={634:function(o,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.NoErrorsConfiguration=void 0;var t=r(251);n.NoErrorsConfiguration=t.Configuration.create("noerrors",{nodes:{error:function(o,n,r,t){var e=o.create("token","mtext",{},t.replace(/\n/g," "));return o.create("node","merror",[e],{"data-mjx-error":n,title:n})}}})},955:function(o,n){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,n.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Configuration=MathJax._.input.tex.Configuration.Configuration,n.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,n.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration}},t={};function e(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return r[o](a,a.exports,e),a.exports}o=e(955),n=e(634),(0,o.r8)({_:{input:{tex:{noerrors:{NoErrorsConfiguration:n}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/noundefined.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/noundefined.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var n,o,t={999:function(n,o,t){var e=this&&this.__values||function(n){var o="function"==typeof Symbol&&Symbol.iterator,t=o&&n[o],e=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.NoUndefinedConfiguration=void 0;var r=t(251);o.NoUndefinedConfiguration=r.Configuration.create("noundefined",{fallback:{macro:function(n,o){var t,r,i=n.create("text","\\"+o),a=n.options.noundefined||{},u={};try{for(var f=e(["color","background","size"]),l=f.next();!l.done;l=f.next()){var c=l.value;a[c]&&(u["math"+c]=a[c])}}catch(n){t={error:n}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}n.Push(n.create("node","mtext",[],u,i))}},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},955:function(n,o){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,o.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Configuration=MathJax._.input.tex.Configuration.Configuration,o.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,o.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}n=r(955),o=r(999),(0,n.r8)({_:{input:{tex:{noundefined:{NoUndefinedConfiguration:o}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/physics.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/physics.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/require.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/require.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/setoptions.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/setoptions.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/tagformat.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/tagformat.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,o,n={941:function(t,o,n){var a,r=this&&this.__extends||(a=function(t,o){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}a(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(o,"__esModule",{value:!0}),o.TagFormatConfiguration=o.tagformatConfig=void 0;var e=n(251),i=n(680),s=0;function u(t,o){var n=o.parseOptions.options.tags;"base"!==n&&t.tags.hasOwnProperty(n)&&i.TagsFactory.add(n,t.tags[n]);var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.formatNumber=function(t){return o.parseOptions.options.tagformat.number(t)},n.prototype.formatTag=function(t){return o.parseOptions.options.tagformat.tag(t)},n.prototype.formatId=function(t){return o.parseOptions.options.tagformat.id(t)},n.prototype.formatUrl=function(t,n){return o.parseOptions.options.tagformat.url(t,n)},n}(i.TagsFactory.create(o.parseOptions.options.tags).constructor),e="configTags-"+ ++s;i.TagsFactory.add(e,a),o.parseOptions.options.tags=e}o.tagformatConfig=u,o.TagFormatConfiguration=e.Configuration.create("tagformat",{config:[u,10],options:{tagformat:{number:function(t){return t.toString()},tag:function(t){return"("+t+")"},id:function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},url:function(t,o){return o+"#"+encodeURIComponent(t)}}}})},955:function(t,o){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,o.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Configuration=MathJax._.input.tex.Configuration.Configuration,o.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,o.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},680:function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Label=MathJax._.input.tex.Tags.Label,o.TagInfo=MathJax._.input.tex.Tags.TagInfo,o.AbstractTags=MathJax._.input.tex.Tags.AbstractTags,o.NoTags=MathJax._.input.tex.Tags.NoTags,o.AllTags=MathJax._.input.tex.Tags.AllTags,o.TagsFactory=MathJax._.input.tex.Tags.TagsFactory}},a={};function r(t){var o=a[t];if(void 0!==o)return o.exports;var e=a[t]={exports:{}};return n[t].call(e.exports,e,e.exports,r),e.exports}t=r(955),o=r(941),(0,t.r8)({_:{input:{tex:{tagformat:{TagFormatConfiguration:o}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/textcomp.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/textcomp.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/textmacros.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/textmacros.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/unicode.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/unicode.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,e,a={376:function(t,e,a){Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeConfiguration=e.UnicodeMethods=void 0;var n=a(251),o=a(402),i=a(871),r=a(398),u=a(748),l=a(992);e.UnicodeMethods={};var c={};e.UnicodeMethods.Unicode=function(t,e){var a=t.GetBrackets(e),n=null,i=null;a&&(a.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(n=a.replace(/ /g,"").split(/,/),i=t.GetBrackets(e)):i=a);var p=r.default.trimSpaces(t.GetArgument(e)).replace(/^0x/,"x");if(!p.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new o.default("BadUnicode","Argument to \\unicode must be a number");var M=parseInt(p.match(/^x/)?"0"+p:p);c[M]?i||(i=c[M][2]):c[M]=[800,200,i,M],n&&(c[M][0]=Math.floor(1e3*parseFloat(n[0])),c[M][1]=Math.floor(1e3*parseFloat(n[1])));var d=t.stack.env.font,s={};i?(c[M][2]=s.fontfamily=i.replace(/'/g,"'"),d&&(d.match(/bold/)&&(s.fontweight="bold"),d.match(/italic|-mathit/)&&(s.fontstyle="italic"))):d&&(s.mathvariant=d);var x=t.create("token","mtext",s,l.numeric(p));u.default.setProperty(x,"unicode",!0),t.Push(x)},new i.CommandMap("unicode",{unicode:"Unicode"},e.UnicodeMethods),e.UnicodeConfiguration=n.Configuration.create("unicode",{handler:{macro:["unicode"]}})},955:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},992:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.options=MathJax._.util.Entities.options,e.entities=MathJax._.util.Entities.entities,e.add=MathJax._.util.Entities.add,e.remove=MathJax._.util.Entities.remove,e.translate=MathJax._.util.Entities.translate,e.numeric=MathJax._.util.Entities.numeric},251:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=MathJax._.input.tex.Configuration.Configuration,e.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,e.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},748:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.NodeUtil.default},398:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.ParseUtil.default},871:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,e.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,e.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,e.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,e.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,e.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,e.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,e.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},402:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.TexError.default}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return a[t](i,i.exports,o),i.exports}t=o(955),e=o(376),(0,t.r8)({_:{input:{tex:{unicode:{UnicodeConfiguration:e}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/upgreek.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/upgreek.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var a,t,p={927:function(a,t,p){Object.defineProperty(t,"__esModule",{value:!0}),t.UpgreekConfiguration=void 0;var e=p(251),n=p(871),o=p(108);new n.CharacterMap("upgreek",(function(a,t){var p=t.attributes||{};p.mathvariant=o.TexConstant.Variant.NORMAL;var e=a.create("token","mi",p,t.char);a.Push(e)}),{upalpha:"\u03b1",upbeta:"\u03b2",upgamma:"\u03b3",updelta:"\u03b4",upepsilon:"\u03f5",upzeta:"\u03b6",upeta:"\u03b7",uptheta:"\u03b8",upiota:"\u03b9",upkappa:"\u03ba",uplambda:"\u03bb",upmu:"\u03bc",upnu:"\u03bd",upxi:"\u03be",upomicron:"\u03bf",uppi:"\u03c0",uprho:"\u03c1",upsigma:"\u03c3",uptau:"\u03c4",upupsilon:"\u03c5",upphi:"\u03d5",upchi:"\u03c7",uppsi:"\u03c8",upomega:"\u03c9",upvarepsilon:"\u03b5",upvartheta:"\u03d1",upvarpi:"\u03d6",upvarrho:"\u03f1",upvarsigma:"\u03c2",upvarphi:"\u03c6",Upgamma:"\u0393",Updelta:"\u0394",Uptheta:"\u0398",Uplambda:"\u039b",Upxi:"\u039e",Uppi:"\u03a0",Upsigma:"\u03a3",Upupsilon:"\u03a5",Upphi:"\u03a6",Uppsi:"\u03a8",Upomega:"\u03a9"}),t.UpgreekConfiguration=e.Configuration.create("upgreek",{handler:{macro:["upgreek"]}})},955:function(a,t){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,t.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=MathJax._.input.tex.Configuration.Configuration,t.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,t.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,t.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,t.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,t.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,t.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,t.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,t.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,t.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},108:function(a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TexConstant=MathJax._.input.tex.TexConstants.TexConstant}},e={};function n(a){var t=e[a];if(void 0!==t)return t.exports;var o=e[a]={exports:{}};return p[a](o,o.exports,n),o.exports}a=n(955),t=n(927),(0,a.r8)({_:{input:{tex:{upgreek:{UpgreekConfiguration:t}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/verb.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/input/tex/extensions/verb.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var t,a,e={768:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0}),a.VerbConfiguration=a.VerbMethods=void 0;var n=e(251),o=e(108),r=e(871),i=e(402);a.VerbMethods={},a.VerbMethods.Verb=function(t,a){var e=t.GetNext(),n=++t.i;if(""===e)throw new i.default("MissingArgFor","Missing argument for %1",a);for(;t.i<t.string.length&&t.string.charAt(t.i)!==e;)t.i++;if(t.i===t.string.length)throw new i.default("NoClosingDelim","Can't find closing delimiter for %1",t.currentCS);var r=t.string.slice(n,t.i).replace(/ /g,"\xa0");t.i++,t.Push(t.create("token","mtext",{mathvariant:o.TexConstant.Variant.MONOSPACE},r))},new r.CommandMap("verb",{verb:"Verb"},a.VerbMethods),a.VerbConfiguration=n.Configuration.create("verb",{handler:{macro:["verb"]}})},955:function(t,a){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,a.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},251:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Configuration=MathJax._.input.tex.Configuration.Configuration,a.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,a.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},871:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,a.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,a.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,a.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,a.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,a.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,a.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,a.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},108:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.TexConstant=MathJax._.input.tex.TexConstants.TexConstant},402:function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=MathJax._.input.tex.TexError.default}},n={};function o(t){var a=n[t];if(void 0!==a)return a.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}t=o(955),a=o(768),(0,t.r8)({_:{input:{tex:{verb:{VerbConfiguration:a}}}}})}();
|
1
dist/ext/MathJax-3.2.0/es5/latest.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/latest.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/loader.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/loader.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/mml-chtml.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/mml-chtml.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/mml-svg.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/mml-svg.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/node-main.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/node-main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/output/chtml.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/output/chtml.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/tex.js
vendored
Normal file
1
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/tex.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff
vendored
Normal file
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff
vendored
Normal file
Binary file not shown.
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff
vendored
Normal file
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff
vendored
Normal file
Binary file not shown.
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff
vendored
Normal file
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff
vendored
Normal file
Binary file not shown.
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff
vendored
Normal file
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff
vendored
Normal file
Binary file not shown.
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff
vendored
Normal file
BIN
dist/ext/MathJax-3.2.0/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user