diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index 60d743f..0000000
--- a/.editorconfig
+++ /dev/null
@@ -1,181 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2017 The Stdlib Authors.
-#
-# 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.
-#/
-
-# EditorConfig configuration file (see ).
-
-# Indicate that this file is a root-level configuration file:
-root = true
-
-# Set properties for all files:
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-# Set properties for JavaScript files:
-[*.{js,js.txt}]
-indent_style = tab
-
-# Set properties for JavaScript ES module files:
-[*.{mjs,mjs.txt}]
-indent_style = tab
-
-# Set properties for JavaScript CommonJS files:
-[*.{cjs,cjs.txt}]
-indent_style = tab
-
-# Set properties for JSON files:
-[*.{json,json.txt}]
-indent_style = space
-indent_size = 2
-
-# Set properties for `cli_opts.json` files:
-[cli_opts.json]
-indent_style = tab
-
-# Set properties for TypeScript files:
-[*.ts]
-indent_style = tab
-
-# Set properties for Python files:
-[*.{py,py.txt}]
-indent_style = space
-indent_size = 4
-
-# Set properties for Julia files:
-[*.{jl,jl.txt}]
-indent_style = tab
-
-# Set properties for R files:
-[*.{R,R.txt}]
-indent_style = tab
-
-# Set properties for C files:
-[*.{c,c.txt}]
-indent_style = tab
-
-# Set properties for C header files:
-[*.{h,h.txt}]
-indent_style = tab
-
-# Set properties for C++ files:
-[*.{cpp,cpp.txt}]
-indent_style = tab
-
-# Set properties for C++ header files:
-[*.{hpp,hpp.txt}]
-indent_style = tab
-
-# Set properties for Fortran files:
-[*.{f,f.txt}]
-indent_style = space
-indent_size = 2
-insert_final_newline = false
-
-# Set properties for shell files:
-[*.{sh,sh.txt}]
-indent_style = tab
-
-# Set properties for AWK files:
-[*.{awk,awk.txt}]
-indent_style = tab
-
-# Set properties for HTML files:
-[*.{html,html.txt}]
-indent_style = tab
-tab_width = 2
-
-# Set properties for XML files:
-[*.{xml,xml.txt}]
-indent_style = tab
-tab_width = 2
-
-# Set properties for CSS files:
-[*.{css,css.txt}]
-indent_style = tab
-
-# Set properties for Makefiles:
-[Makefile]
-indent_style = tab
-
-[*.{mk,mk.txt}]
-indent_style = tab
-
-# Set properties for Markdown files:
-[*.{md,md.txt}]
-indent_style = space
-indent_size = 4
-trim_trailing_whitespace = false
-
-# Set properties for `usage.txt` files:
-[usage.txt]
-indent_style = space
-indent_size = 2
-
-# Set properties for `repl.txt` files:
-[repl.txt]
-indent_style = space
-indent_size = 4
-
-# Set properties for `package.json` files:
-[package.{json,json.txt}]
-indent_style = space
-indent_size = 2
-
-# Set properties for `datapackage.json` files:
-[datapackage.json]
-indent_style = space
-indent_size = 2
-
-# Set properties for `manifest.json` files:
-[manifest.json]
-indent_style = space
-indent_size = 2
-
-# Set properties for `tsconfig.json` files:
-[tsconfig.json]
-indent_style = space
-indent_size = 2
-
-# Set properties for LaTeX files:
-[*.{tex,tex.txt}]
-indent_style = tab
-
-# Set properties for LaTeX Bibliography files:
-[*.{bib,bib.txt}]
-indent_style = tab
-
-# Set properties for YAML files:
-[*.{yml,yml.txt}]
-indent_style = space
-indent_size = 2
-
-# Set properties for GYP files:
-[binding.gyp]
-indent_style = space
-indent_size = 2
-
-[*.gypi]
-indent_style = space
-indent_size = 2
-
-# Set properties for citation files:
-[*.{cff,cff.txt}]
-indent_style = space
-indent_size = 2
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 5f30286..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1 +0,0 @@
-/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 1c88e69..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1,66 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2017 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Configuration file which assigns attributes to pathnames.
-#
-# [1]: https://git-scm.com/docs/gitattributes
-
-# Automatically normalize the line endings of any committed text files:
-* text=auto
-
-# Override line endings for certain files on checkout:
-*.crlf.csv text eol=crlf
-
-# Denote that certain files are binary and should not be modified:
-*.png binary
-*.jpg binary
-*.jpeg binary
-*.gif binary
-*.ico binary
-*.gz binary
-*.zip binary
-*.7z binary
-*.mp3 binary
-*.mp4 binary
-*.mov binary
-
-# Override what is considered "vendored" by GitHub's linguist:
-/lib/node_modules/** -linguist-vendored -linguist-generated
-
-# Configure directories which should *not* be included in GitHub language statistics:
-/deps/** linguist-vendored
-/dist/** linguist-generated
-/workshops/** linguist-vendored
-
-benchmark/** linguist-vendored
-docs/* linguist-documentation
-etc/** linguist-vendored
-examples/** linguist-documentation
-scripts/** linguist-vendored
-test/** linguist-vendored
-tools/** linguist-vendored
-
-# Configure files which should *not* be included in GitHub language statistics:
-Makefile linguist-vendored
-*.mk linguist-vendored
-*.jl linguist-vendored
-*.py linguist-vendored
-*.R linguist-vendored
-
-# Configure files which should be included in GitHub language statistics:
-docs/types/*.d.ts -linguist-documentation
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index c4508e7..0000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base) of the main repository where we’ll review and provide feedback.
-
-If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
-
-We look forward to receiving your contribution! :smiley:
\ No newline at end of file
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
deleted file mode 100644
index e4f10fe..0000000
--- a/.github/workflows/benchmark.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2021 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: benchmark
-
-# Workflow triggers:
-on:
- # Allow the workflow to be manually run:
- workflow_dispatch:
-
-# Workflow jobs:
-jobs:
-
- # Define a job to run benchmarks:
- benchmark:
-
- # Define a display name:
- name: 'Run benchmarks'
-
- # Define the type of virtual host machine:
- runs-on: 'ubuntu-latest'
-
- # Define the sequence of job steps...
- steps:
-
- # Checkout the repository:
- - name: 'Checkout repository'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
-
- # Install Node.js:
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Install dependencies:
- - name: 'Install production and development dependencies'
- run: |
- npm install || npm install || npm install
- timeout-minutes: 15
-
- # Run benchmarks:
- - name: 'Run benchmarks'
- run: |
- npm run benchmark
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
deleted file mode 100644
index b5291db..0000000
--- a/.github/workflows/cancel.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2021 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: cancel
-
-# Workflow triggers:
-on:
- # Allow the workflow to be manually run:
- workflow_dispatch:
-
-# Workflow jobs:
-jobs:
-
- # Define a job to cancel existing workflow runs:
- cancel:
-
- # Define a display name:
- name: 'Cancel workflow runs'
-
- # Define the type of virtual host machine:
- runs-on: 'ubuntu-latest'
-
- # Time limit:
- timeout-minutes: 3
-
- # Define the sequence of job steps...
- steps:
-
- # Cancel existing workflow runs:
- - name: 'Cancel existing workflow runs'
- # Pin action to full length commit SHA
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
- with:
- workflow_id: >-
- benchmark.yml,
- examples.yml,
- test.yml,
- test_coverage.yml,
- test_install.yml,
- publish.yml
- access_token: ${{ github.token }}
diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml
deleted file mode 100644
index a5614d8..0000000
--- a/.github/workflows/close_pull_requests.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2021 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: close_pull_requests
-
-# Workflow triggers:
-on:
- pull_request_target:
- types: [opened]
-
-# Workflow jobs:
-jobs:
-
- # Define job to close all pull requests:
- run:
-
- # Define the type of virtual host machine on which to run the job:
- runs-on: ubuntu-latest
-
- # Define the sequence of job steps...
- steps:
-
- # Close pull request
- - name: 'Close pull request'
- # Pin action to full length commit SHA corresponding to v3.1.2
- uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448
- with:
- comment: |
- Thank you for submitting a pull request. :raised_hands:
-
- We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib).
-
- We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions.
-
- Thank you again, and we look forward to receiving your contribution! :smiley:
-
- Best,
- The stdlib team
\ No newline at end of file
diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml
deleted file mode 100644
index 2984901..0000000
--- a/.github/workflows/examples.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2021 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: examples
-
-# Workflow triggers:
-on:
- # Allow the workflow to be manually run:
- workflow_dispatch:
-
-# Workflow jobs:
-jobs:
-
- # Define a job to run the package examples...
- examples:
-
- # Define display name:
- name: 'Run examples'
-
- # Define the type of virtual host machine on which to run the job:
- runs-on: ubuntu-latest
-
- # Define the sequence of job steps...
- steps:
-
- # Checkout repository:
- - name: 'Checkout repository'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
-
- # Install Node.js:
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Install dependencies:
- - name: 'Install production and development dependencies'
- run: |
- npm install || npm install || npm install
- timeout-minutes: 15
-
- # Run examples:
- - name: 'Run examples'
- run: |
- npm run examples
diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml
deleted file mode 100644
index ec20c25..0000000
--- a/.github/workflows/npm_downloads.yml
+++ /dev/null
@@ -1,112 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2022 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: npm_downloads
-
-# Workflow triggers:
-on:
- # Run this workflow weekly:
- schedule:
- # cron: ' '
- - cron: '50 14 * * 5'
-
- # Allow the workflow to be manually run:
- workflow_dispatch:
-
-# Workflow jobs:
-jobs:
-
- # Define a job for retrieving npm download counts...
- npm_downloads:
-
- # Define display name:
- name: 'Retrieve npm download counts'
-
- # Define the type of virtual host machine on which to run the job:
- runs-on: ubuntu-latest
-
- # Define the sequence of job steps...
- steps:
- # Checkout the repository:
- - name: 'Checkout repository'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- timeout-minutes: 10
-
- # Install Node.js:
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Resolve package name:
- - name: 'Resolve package name'
- id: package_name
- run: |
- name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'`
- echo "package_name=$name" >> $GITHUB_OUTPUT
- timeout-minutes: 5
-
- # Fetch download data:
- - name: 'Fetch data'
- id: download_data
- run: |
- url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}"
- echo "$url"
- data=$(curl "$url")
- mkdir ./tmp
- echo "$data" > ./tmp/npm_downloads.json
- echo "data=$data" >> $GITHUB_OUTPUT
- timeout-minutes: 5
-
- # Print summary of download data:
- - name: 'Print summary'
- run: |
- echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY
- echo "|------|------------|" >> $GITHUB_STEP_SUMMARY
- cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY
-
- # Upload the download data:
- - name: 'Upload data'
- # Pin action to full length commit SHA
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
- with:
- # Define a name for the uploaded artifact (ensuring a unique name for each job):
- name: npm_downloads
-
- # Specify the path to the file to upload:
- path: ./tmp/npm_downloads.json
-
- # Specify the number of days to retain the artifact (default is 90 days):
- retention-days: 90
- timeout-minutes: 10
- if: success()
-
- # Send data to events server:
- - name: 'Post data'
- # Pin action to full length commit SHA
- uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3
- env:
- webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }}
- webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }}
- data: '{ "downloads": ${{ steps.download_data.outputs.data }} }'
- timeout-minutes: 5
- if: success()
diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml
deleted file mode 100644
index f4575e9..0000000
--- a/.github/workflows/productionize.yml
+++ /dev/null
@@ -1,794 +0,0 @@
-#/
-# @license Apache-2.0
-#
-# Copyright (c) 2022 The Stdlib Authors.
-#
-# 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.
-#/
-
-# Workflow name:
-name: productionize
-
-# Workflow triggers:
-on:
- # Run workflow when a new commit is pushed to the main branch:
- push:
- branches:
- - main
-
- # Allow the workflow to be manually run:
- workflow_dispatch:
- inputs:
- require-passing-tests:
- description: 'Require passing tests for creating bundles'
- type: boolean
- default: true
-
- # Run workflow upon completion of `publish` workflow run:
- workflow_run:
- workflows: ["publish"]
- types: [completed]
-
-
-# Concurrency group to prevent multiple concurrent executions:
-concurrency:
- group: productionize
- cancel-in-progress: true
-
-# Workflow jobs:
-jobs:
-
- # Define a job to create a production build...
- productionize:
-
- # Define display name:
- name: 'Productionize'
-
- # Define the type of virtual host machine:
- runs-on: 'ubuntu-latest'
-
- # Define the sequence of job steps...
- steps:
- # Checkout main branch of repository:
- - name: 'Checkout main branch'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- with:
- ref: main
-
- # Install Node.js:
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Create production branch:
- - name: 'Create production branch'
- run: |
- git checkout -b production
-
- # Transform error messages:
- - name: 'Transform error messages'
- id: transform-error-messages
- uses: stdlib-js/transform-errors-action@main
-
- # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
- - name: 'Update dependencies in package.json'
- run: |
- PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version)
- if grep -q '"@stdlib/string-format"' package.json; then
- sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json
- else
- node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );"
- fi
-
- # Configure Git:
- - name: 'Configure Git'
- run: |
- git config --local user.email "noreply@stdlib.io"
- git config --local user.name "stdlib-bot"
-
- # Commit changes:
- - name: 'Commit changes'
- run: |
- git add -A
- git commit -m "Transform error messages"
-
- # Push changes:
- - name: 'Push changes'
- run: |
- SLUG=${{ github.repository }}
- echo "Pushing changes to $SLUG..."
- git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force
-
- # Define a job for running tests of the productionized code...
- test:
-
- # Define a display name:
- name: 'Run Tests'
-
- # Define the type of virtual host machine:
- runs-on: 'ubuntu-latest'
-
- # Indicate that this job depends on the prior job finishing:
- needs: productionize
-
- # Run this job regardless of the outcome of the prior job:
- if: always()
-
- # Define the sequence of job steps...
- steps:
-
- # Checkout the repository:
- - name: 'Checkout repository'
- if: ${{ github.event.inputs.require-passing-tests == 'true' }}
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- with:
- # Use the `production` branch:
- ref: production
-
- # Install Node.js:
- - name: 'Install Node.js'
- if: ${{ github.event.inputs.require-passing-tests == 'true' }}
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Install dependencies:
- - name: 'Install production and development dependencies'
- if: ${{ github.event.inputs.require-passing-tests == 'true' }}
- id: install
- run: |
- npm install || npm install || npm install
- timeout-minutes: 15
-
- # Build native add-on if present:
- - name: 'Build native add-on (if present)'
- if: ${{ github.event.inputs.require-passing-tests == 'true' }}
- run: |
- if [ -f "binding.gyp" ]; then
- npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild
- fi
-
- # Run tests:
- - name: 'Run tests'
- if: ${{ github.event.inputs.require-passing-tests == 'true' }}
- id: tests
- run: |
- npm test || npm test || npm test
-
- # Define job to create a bundle for use in Deno...
- deno:
-
- # Define display name:
- name: 'Create Deno bundle'
-
- # Define the type of virtual host machine on which to run the job:
- runs-on: ubuntu-latest
-
- # Indicate that this job depends on the test job finishing:
- needs: test
-
- # Define the sequence of job steps...
- steps:
- # Checkout the repository:
- - name: 'Checkout repository'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
-
- # Configure Git:
- - name: 'Configure Git'
- run: |
- git config --local user.email "noreply@stdlib.io"
- git config --local user.name "stdlib-bot"
-
- # Check if remote `deno` branch exists:
- - name: 'Check if remote `deno` branch exists'
- id: deno-branch-exists
- continue-on-error: true
- run: |
- git fetch --all
- git ls-remote --exit-code --heads origin deno
- if [ $? -eq 0 ]; then
- echo "remote-exists=true" >> $GITHUB_OUTPUT
- else
- echo "remote-exists=false" >> $GITHUB_OUTPUT
- fi
-
- # If `deno` exists, delete everything in branch and merge `production` into it
- - name: 'If `deno` exists, delete everything in branch and merge `production` into it'
- if: steps.deno-branch-exists.outputs.remote-exists
- run: |
- git checkout -b deno origin/deno
-
- find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm
- find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
-
- git add -A
- git commit -m "Remove files" --allow-empty
-
- git config merge.theirs.name 'simulate `-s theirs`'
- git config merge.theirs.driver 'cat %B > %A'
- GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories
-
- # Copy files from `production` branch if necessary:
- git checkout origin/production -- .
- if [ -n "$(git status --porcelain)" ]; then
- git add -A
- git commit -m "Auto-generated commit"
- fi
-
- # If `deno` does not exist, create `deno` branch:
- - name: 'If `deno` does not exist, create `deno` branch'
- if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }}
- run: |
- git checkout production
- git checkout -b deno
-
- # Copy files to deno directory:
- - name: 'Copy files to deno directory'
- run: |
- mkdir -p deno
- cp README.md LICENSE CONTRIBUTORS NOTICE ./deno
-
- # Copy TypeScript definitions to deno directory:
- if [ -d index.d.ts ]; then
- cp index.d.ts ./deno/index.d.ts
- fi
- if [ -e ./docs/types/index.d.ts ]; then
- cp ./docs/types/index.d.ts ./deno/mod.d.ts
- fi
-
- # Install Node.js:
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Install dependencies:
- - name: Install production and development dependencies
- id: install
- run: |
- npm install || npm install || npm install
- timeout-minutes: 15
-
- # Bundle package for use in Deno:
- - name: 'Bundle package for Deno'
- id: deno-bundle
- uses: stdlib-js/bundle-action@main
- with:
- target: 'deno'
-
- # Rewrite file contents:
- - name: 'Rewrite file contents'
- run: |
- # Replace links to other packages with links to the deno branch:
- find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/";
-
- # Replace reference to `@stdlib/types` with CDN link:
- find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g"
-
- # Change wording of project description to avoid reference to JavaScript and Node.js:
- find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g"
-
- # Rewrite all `require()`s to use jsDelivr links:
- find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// {
- s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i
- s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/
- s/';/@deno\/mod.js';/
- }"
-
- # Rewrite first `import` to show importing of named exports if available:
- exports=$(cat lib/index.js | \
- grep -E 'setReadOnly\(.*,.*,.*\)' | \
- sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \
- sed -E "s/'//g" | \
- sort)
- if [ -n "$exports" ]; then
- find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/"
- fi
-
- # Remove `installation`, `cli`, and `c` sections:
- find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/[^<]+<\/section>//g;"
- find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?[\s\S]+<\!\-\- \/.cli \-\->//g"
- find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?[\s\S]+<\!\-\- \/.c \-\->//g"
-
- # Create package.json file for deno branch:
- jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json
-
- # Delete everything in current directory aside from deno folder:
- - name: 'Delete everything in current directory aside from deno folder'
- run: |
- find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm
- find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf
-
- # Move deno directory to root:
- - name: 'Move deno directory to root'
- run: |
- mv ./deno/* .
- rmdir ./deno
-
- # Commit changes:
- - name: 'Commit changes'
- run: |
- git add -A
- git commit -m "Auto-generated commit"
-
- # Push changes to `deno` branch:
- - name: 'Push changes to `deno` branch'
- run: |
- SLUG=${{ github.repository }}
- echo "Pushing changes to $SLUG..."
- git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno
-
- # Send status to Slack channel if job fails:
- - name: 'Send status to Slack channel in case of failure'
- # Pin action to full length commit SHA
- uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
- with:
- status: ${{ job.status }}
- channel: '#npm-ci'
- if: failure()
-
- # Define job to create a UMD bundle...
- umd:
-
- # Define display name:
- name: 'Create UMD bundle'
-
- # Define the type of virtual host machine on which to run the job:
- runs-on: ubuntu-latest
-
- # Indicate that this job depends on the test job finishing:
- needs: test
-
- # Define the sequence of job steps...
- steps:
- # Checkout the repository:
- - name: 'Checkout repository'
- # Pin action to full length commit SHA
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
-
- # Configure Git:
- - name: 'Configure Git'
- run: |
- git config --local user.email "noreply@stdlib.io"
- git config --local user.name "stdlib-bot"
-
- # Check if remote `umd` branch exists:
- - name: 'Check if remote `umd` branch exists'
- id: umd-branch-exists
- continue-on-error: true
- run: |
- git fetch --all
- git ls-remote --exit-code --heads origin umd
- if [ $? -eq 0 ]; then
- echo "remote-exists=true" >> $GITHUB_OUTPUT
- else
- echo "remote-exists=false" >> $GITHUB_OUTPUT
- fi
-
- # If `umd` exists, delete everything in branch and merge `production` into it
- - name: 'If `umd` exists, delete everything in branch and merge `production` into it'
- if: steps.umd-branch-exists.outputs.remote-exists
- run: |
- git checkout -b umd origin/umd
-
- find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm
- find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
-
- git add -A
- git commit -m "Remove files" --allow-empty
-
- git config merge.theirs.name 'simulate `-s theirs`'
- git config merge.theirs.driver 'cat %B > %A'
- GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories
-
- # Copy files from `production` branch if necessary:
- git checkout origin/production -- .
- if [ -n "$(git status --porcelain)" ]; then
- git add -A
- git commit -m "Auto-generated commit"
- fi
-
- # If `umd` does not exist, create `umd` branch:
- - name: 'If `umd` does not exist, create `umd` branch'
- if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }}
- run: |
- git checkout production
- git checkout -b umd
-
- # Copy files to umd directory:
- - name: 'Copy files to umd directory'
- run: |
- mkdir -p umd
- cp README.md LICENSE CONTRIBUTORS NOTICE ./umd
-
- # Install Node.js
- - name: 'Install Node.js'
- # Pin action to full length commit SHA
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
- with:
- node-version: 20
- timeout-minutes: 5
-
- # Install dependencies:
- - name: 'Install production and development dependencies'
- id: install
- run: |
- npm install || npm install || npm install
- timeout-minutes: 15
-
- # Extract alias:
- - name: 'Extract alias'
- id: extract-alias
- run: |
- alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/')
- echo "alias=${alias}" >> $GITHUB_OUTPUT
-
- # Create Universal Module Definition (UMD) Node.js bundle:
- - name: 'Create Universal Module Definition (UMD) Node.js bundle'
- id: umd-bundle-node
- uses: stdlib-js/bundle-action@main
- with:
- target: 'umd-node'
- alias: ${{ steps.extract-alias.outputs.alias }}
-
- # Create Universal Module Definition (UMD) browser bundle:
- - name: 'Create Universal Module Definition (UMD) browser bundle'
- id: umd-bundle-browser
- uses: stdlib-js/bundle-action@main
- with:
- target: 'umd-browser'
- alias: ${{ steps.extract-alias.outputs.alias }}
-
- # Rewrite file contents:
- - name: 'Rewrite file contents'
- run: |
-
- # Replace links to other packages with links to the umd branch:
- find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/";
-
- # Remove `installation`, `cli`, and `c` sections:
- find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/[^<]+<\/section>//g;"
- find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?[\s\S]+<\!\-\- \/.cli \-\->//g"
- find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?[\s\S]+<\!\-\- \/.c \-\->//g"
-
- # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag:
- find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n
+```
-```javascript
-var ns = require( '@stdlib/array-base' );
+If no recognized module system is present, access bundle contents via the global scope:
+
+```html
+
```
#### ns
@@ -269,9 +275,14 @@ The namespace exports the following:
-```javascript
-var randu = require( '@stdlib/random-base-randu' );
-var ns = require( '@stdlib/array-base' );
+```html
+
+
+
+
+
+
+
+
```
@@ -380,357 +396,357 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
-[@stdlib/array/base/accessor-getter]: https://github.com/stdlib-js/array-base-accessor-getter
+[@stdlib/array/base/accessor-getter]: https://github.com/stdlib-js/array-base-accessor-getter/tree/umd
-[@stdlib/array/base/accessor-setter]: https://github.com/stdlib-js/array-base-accessor-setter
+[@stdlib/array/base/accessor-setter]: https://github.com/stdlib-js/array-base-accessor-setter/tree/umd
-[@stdlib/array/base/accessor]: https://github.com/stdlib-js/array-base-accessor
+[@stdlib/array/base/accessor]: https://github.com/stdlib-js/array-base-accessor/tree/umd
-[@stdlib/array/base/accessors]: https://github.com/stdlib-js/array-base-accessors
+[@stdlib/array/base/accessors]: https://github.com/stdlib-js/array-base-accessors/tree/umd
-[@stdlib/array/base/any-by-right]: https://github.com/stdlib-js/array-base-any-by-right
+[@stdlib/array/base/any-by-right]: https://github.com/stdlib-js/array-base-any-by-right/tree/umd
-[@stdlib/array/base/any-by]: https://github.com/stdlib-js/array-base-any-by
+[@stdlib/array/base/any-by]: https://github.com/stdlib-js/array-base-any-by/tree/umd
-[@stdlib/array/base/any]: https://github.com/stdlib-js/array-base-any
+[@stdlib/array/base/any]: https://github.com/stdlib-js/array-base-any/tree/umd
-[@stdlib/array/base/arraylike2object]: https://github.com/stdlib-js/array-base-arraylike2object
+[@stdlib/array/base/arraylike2object]: https://github.com/stdlib-js/array-base-arraylike2object/tree/umd
-[@stdlib/array/base/assert]: https://github.com/stdlib-js/array-base-assert
+[@stdlib/array/base/assert]: https://github.com/stdlib-js/array-base-assert/tree/umd
-[@stdlib/array/base/at]: https://github.com/stdlib-js/array-base-at
+[@stdlib/array/base/at]: https://github.com/stdlib-js/array-base-at/tree/umd
-[@stdlib/array/base/at2d]: https://github.com/stdlib-js/array-base-at2d
+[@stdlib/array/base/at2d]: https://github.com/stdlib-js/array-base-at2d/tree/umd
-[@stdlib/array/base/at3d]: https://github.com/stdlib-js/array-base-at3d
+[@stdlib/array/base/at3d]: https://github.com/stdlib-js/array-base-at3d/tree/umd
-[@stdlib/array/base/at4d]: https://github.com/stdlib-js/array-base-at4d
+[@stdlib/array/base/at4d]: https://github.com/stdlib-js/array-base-at4d/tree/umd
-[@stdlib/array/base/at5d]: https://github.com/stdlib-js/array-base-at5d
+[@stdlib/array/base/at5d]: https://github.com/stdlib-js/array-base-at5d/tree/umd
-[@stdlib/array/base/atnd]: https://github.com/stdlib-js/array-base-atnd
+[@stdlib/array/base/atnd]: https://github.com/stdlib-js/array-base-atnd/tree/umd
-[@stdlib/array/base/bifurcate-entries-by]: https://github.com/stdlib-js/array-base-bifurcate-entries-by
+[@stdlib/array/base/bifurcate-entries-by]: https://github.com/stdlib-js/array-base-bifurcate-entries-by/tree/umd
-[@stdlib/array/base/bifurcate-entries]: https://github.com/stdlib-js/array-base-bifurcate-entries
+[@stdlib/array/base/bifurcate-entries]: https://github.com/stdlib-js/array-base-bifurcate-entries/tree/umd
-[@stdlib/array/base/bifurcate-indices-by]: https://github.com/stdlib-js/array-base-bifurcate-indices-by
+[@stdlib/array/base/bifurcate-indices-by]: https://github.com/stdlib-js/array-base-bifurcate-indices-by/tree/umd
-[@stdlib/array/base/bifurcate-indices]: https://github.com/stdlib-js/array-base-bifurcate-indices
+[@stdlib/array/base/bifurcate-indices]: https://github.com/stdlib-js/array-base-bifurcate-indices/tree/umd
-[@stdlib/array/base/bifurcate-values-by]: https://github.com/stdlib-js/array-base-bifurcate-values-by
+[@stdlib/array/base/bifurcate-values-by]: https://github.com/stdlib-js/array-base-bifurcate-values-by/tree/umd
-[@stdlib/array/base/bifurcate-values]: https://github.com/stdlib-js/array-base-bifurcate-values
+[@stdlib/array/base/bifurcate-values]: https://github.com/stdlib-js/array-base-bifurcate-values/tree/umd
-[@stdlib/array/base/binary2d]: https://github.com/stdlib-js/array-base-binary2d
+[@stdlib/array/base/binary2d]: https://github.com/stdlib-js/array-base-binary2d/tree/umd
-[@stdlib/array/base/binary3d]: https://github.com/stdlib-js/array-base-binary3d
+[@stdlib/array/base/binary3d]: https://github.com/stdlib-js/array-base-binary3d/tree/umd
-[@stdlib/array/base/binary4d]: https://github.com/stdlib-js/array-base-binary4d
+[@stdlib/array/base/binary4d]: https://github.com/stdlib-js/array-base-binary4d/tree/umd
-[@stdlib/array/base/binary5d]: https://github.com/stdlib-js/array-base-binary5d
+[@stdlib/array/base/binary5d]: https://github.com/stdlib-js/array-base-binary5d/tree/umd
-[@stdlib/array/base/binarynd]: https://github.com/stdlib-js/array-base-binarynd
+[@stdlib/array/base/binarynd]: https://github.com/stdlib-js/array-base-binarynd/tree/umd
-[@stdlib/array/base/broadcast-array]: https://github.com/stdlib-js/array-base-broadcast-array
+[@stdlib/array/base/broadcast-array]: https://github.com/stdlib-js/array-base-broadcast-array/tree/umd
-[@stdlib/array/base/broadcasted-binary2d]: https://github.com/stdlib-js/array-base-broadcasted-binary2d
+[@stdlib/array/base/broadcasted-binary2d]: https://github.com/stdlib-js/array-base-broadcasted-binary2d/tree/umd
-[@stdlib/array/base/broadcasted-binary3d]: https://github.com/stdlib-js/array-base-broadcasted-binary3d
+[@stdlib/array/base/broadcasted-binary3d]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/tree/umd
-[@stdlib/array/base/broadcasted-binary4d]: https://github.com/stdlib-js/array-base-broadcasted-binary4d
+[@stdlib/array/base/broadcasted-binary4d]: https://github.com/stdlib-js/array-base-broadcasted-binary4d/tree/umd
-[@stdlib/array/base/broadcasted-binary5d]: https://github.com/stdlib-js/array-base-broadcasted-binary5d
+[@stdlib/array/base/broadcasted-binary5d]: https://github.com/stdlib-js/array-base-broadcasted-binary5d/tree/umd
-[@stdlib/array/base/broadcasted-quaternary2d]: https://github.com/stdlib-js/array-base-broadcasted-quaternary2d
+[@stdlib/array/base/broadcasted-quaternary2d]: https://github.com/stdlib-js/array-base-broadcasted-quaternary2d/tree/umd
-[@stdlib/array/base/broadcasted-quinary2d]: https://github.com/stdlib-js/array-base-broadcasted-quinary2d
+[@stdlib/array/base/broadcasted-quinary2d]: https://github.com/stdlib-js/array-base-broadcasted-quinary2d/tree/umd
-[@stdlib/array/base/broadcasted-ternary2d]: https://github.com/stdlib-js/array-base-broadcasted-ternary2d
+[@stdlib/array/base/broadcasted-ternary2d]: https://github.com/stdlib-js/array-base-broadcasted-ternary2d/tree/umd
-[@stdlib/array/base/broadcasted-unary2d]: https://github.com/stdlib-js/array-base-broadcasted-unary2d
+[@stdlib/array/base/broadcasted-unary2d]: https://github.com/stdlib-js/array-base-broadcasted-unary2d/tree/umd
-[@stdlib/array/base/broadcasted-unary3d]: https://github.com/stdlib-js/array-base-broadcasted-unary3d
+[@stdlib/array/base/broadcasted-unary3d]: https://github.com/stdlib-js/array-base-broadcasted-unary3d/tree/umd
-[@stdlib/array/base/broadcasted-unary4d]: https://github.com/stdlib-js/array-base-broadcasted-unary4d
+[@stdlib/array/base/broadcasted-unary4d]: https://github.com/stdlib-js/array-base-broadcasted-unary4d/tree/umd
-[@stdlib/array/base/broadcasted-unary5d]: https://github.com/stdlib-js/array-base-broadcasted-unary5d
+[@stdlib/array/base/broadcasted-unary5d]: https://github.com/stdlib-js/array-base-broadcasted-unary5d/tree/umd
-[@stdlib/array/base/cartesian-power]: https://github.com/stdlib-js/array-base-cartesian-power
+[@stdlib/array/base/cartesian-power]: https://github.com/stdlib-js/array-base-cartesian-power/tree/umd
-[@stdlib/array/base/cartesian-product]: https://github.com/stdlib-js/array-base-cartesian-product
+[@stdlib/array/base/cartesian-product]: https://github.com/stdlib-js/array-base-cartesian-product/tree/umd
-[@stdlib/array/base/cartesian-square]: https://github.com/stdlib-js/array-base-cartesian-square
+[@stdlib/array/base/cartesian-square]: https://github.com/stdlib-js/array-base-cartesian-square/tree/umd
-[@stdlib/array/base/copy-indexed]: https://github.com/stdlib-js/array-base-copy-indexed
+[@stdlib/array/base/copy-indexed]: https://github.com/stdlib-js/array-base-copy-indexed/tree/umd
-[@stdlib/array/base/copy]: https://github.com/stdlib-js/array-base-copy
+[@stdlib/array/base/copy]: https://github.com/stdlib-js/array-base-copy/tree/umd
-[@stdlib/array/base/count-falsy]: https://github.com/stdlib-js/array-base-count-falsy
+[@stdlib/array/base/count-falsy]: https://github.com/stdlib-js/array-base-count-falsy/tree/umd
-[@stdlib/array/base/count-if]: https://github.com/stdlib-js/array-base-count-if
+[@stdlib/array/base/count-if]: https://github.com/stdlib-js/array-base-count-if/tree/umd
-[@stdlib/array/base/count-same-value-zero]: https://github.com/stdlib-js/array-base-count-same-value-zero
+[@stdlib/array/base/count-same-value-zero]: https://github.com/stdlib-js/array-base-count-same-value-zero/tree/umd
-[@stdlib/array/base/count-same-value]: https://github.com/stdlib-js/array-base-count-same-value
+[@stdlib/array/base/count-same-value]: https://github.com/stdlib-js/array-base-count-same-value/tree/umd
-[@stdlib/array/base/count-truthy]: https://github.com/stdlib-js/array-base-count-truthy
+[@stdlib/array/base/count-truthy]: https://github.com/stdlib-js/array-base-count-truthy/tree/umd
-[@stdlib/array/base/cuany]: https://github.com/stdlib-js/array-base-cuany
+[@stdlib/array/base/cuany]: https://github.com/stdlib-js/array-base-cuany/tree/umd
-[@stdlib/array/base/cuevery]: https://github.com/stdlib-js/array-base-cuevery
+[@stdlib/array/base/cuevery]: https://github.com/stdlib-js/array-base-cuevery/tree/umd
-[@stdlib/array/base/cunone]: https://github.com/stdlib-js/array-base-cunone
+[@stdlib/array/base/cunone]: https://github.com/stdlib-js/array-base-cunone/tree/umd
-[@stdlib/array/base/dedupe]: https://github.com/stdlib-js/array-base-dedupe
+[@stdlib/array/base/dedupe]: https://github.com/stdlib-js/array-base-dedupe/tree/umd
-[@stdlib/array/base/every-by-right]: https://github.com/stdlib-js/array-base-every-by-right
+[@stdlib/array/base/every-by-right]: https://github.com/stdlib-js/array-base-every-by-right/tree/umd
-[@stdlib/array/base/every-by]: https://github.com/stdlib-js/array-base-every-by
+[@stdlib/array/base/every-by]: https://github.com/stdlib-js/array-base-every-by/tree/umd
-[@stdlib/array/base/every]: https://github.com/stdlib-js/array-base-every
+[@stdlib/array/base/every]: https://github.com/stdlib-js/array-base-every/tree/umd
-[@stdlib/array/base/fancy-slice-assign]: https://github.com/stdlib-js/array-base-fancy-slice-assign
+[@stdlib/array/base/fancy-slice-assign]: https://github.com/stdlib-js/array-base-fancy-slice-assign/tree/umd
-[@stdlib/array/base/fancy-slice]: https://github.com/stdlib-js/array-base-fancy-slice
+[@stdlib/array/base/fancy-slice]: https://github.com/stdlib-js/array-base-fancy-slice/tree/umd
-[@stdlib/array/base/filled-by]: https://github.com/stdlib-js/array-base-filled-by
+[@stdlib/array/base/filled-by]: https://github.com/stdlib-js/array-base-filled-by/tree/umd
-[@stdlib/array/base/filled]: https://github.com/stdlib-js/array-base-filled
+[@stdlib/array/base/filled]: https://github.com/stdlib-js/array-base-filled/tree/umd
-[@stdlib/array/base/filled2d-by]: https://github.com/stdlib-js/array-base-filled2d-by
+[@stdlib/array/base/filled2d-by]: https://github.com/stdlib-js/array-base-filled2d-by/tree/umd
-[@stdlib/array/base/filled2d]: https://github.com/stdlib-js/array-base-filled2d
+[@stdlib/array/base/filled2d]: https://github.com/stdlib-js/array-base-filled2d/tree/umd
-[@stdlib/array/base/filled3d-by]: https://github.com/stdlib-js/array-base-filled3d-by
+[@stdlib/array/base/filled3d-by]: https://github.com/stdlib-js/array-base-filled3d-by/tree/umd
-[@stdlib/array/base/filled3d]: https://github.com/stdlib-js/array-base-filled3d
+[@stdlib/array/base/filled3d]: https://github.com/stdlib-js/array-base-filled3d/tree/umd
-[@stdlib/array/base/filled4d-by]: https://github.com/stdlib-js/array-base-filled4d-by
+[@stdlib/array/base/filled4d-by]: https://github.com/stdlib-js/array-base-filled4d-by/tree/umd
-[@stdlib/array/base/filled4d]: https://github.com/stdlib-js/array-base-filled4d
+[@stdlib/array/base/filled4d]: https://github.com/stdlib-js/array-base-filled4d/tree/umd
-[@stdlib/array/base/filled5d-by]: https://github.com/stdlib-js/array-base-filled5d-by
+[@stdlib/array/base/filled5d-by]: https://github.com/stdlib-js/array-base-filled5d-by/tree/umd
-[@stdlib/array/base/filled5d]: https://github.com/stdlib-js/array-base-filled5d
+[@stdlib/array/base/filled5d]: https://github.com/stdlib-js/array-base-filled5d/tree/umd
-[@stdlib/array/base/fillednd-by]: https://github.com/stdlib-js/array-base-fillednd-by
+[@stdlib/array/base/fillednd-by]: https://github.com/stdlib-js/array-base-fillednd-by/tree/umd
-[@stdlib/array/base/fillednd]: https://github.com/stdlib-js/array-base-fillednd
+[@stdlib/array/base/fillednd]: https://github.com/stdlib-js/array-base-fillednd/tree/umd
-[@stdlib/array/base/filter]: https://github.com/stdlib-js/array-base-filter
+[@stdlib/array/base/filter]: https://github.com/stdlib-js/array-base-filter/tree/umd
-[@stdlib/array/base/first]: https://github.com/stdlib-js/array-base-first
+[@stdlib/array/base/first]: https://github.com/stdlib-js/array-base-first/tree/umd
-[@stdlib/array/base/flatten-by]: https://github.com/stdlib-js/array-base-flatten-by
+[@stdlib/array/base/flatten-by]: https://github.com/stdlib-js/array-base-flatten-by/tree/umd
-[@stdlib/array/base/flatten]: https://github.com/stdlib-js/array-base-flatten
+[@stdlib/array/base/flatten]: https://github.com/stdlib-js/array-base-flatten/tree/umd
-[@stdlib/array/base/flatten2d-by]: https://github.com/stdlib-js/array-base-flatten2d-by
+[@stdlib/array/base/flatten2d-by]: https://github.com/stdlib-js/array-base-flatten2d-by/tree/umd
-[@stdlib/array/base/flatten2d]: https://github.com/stdlib-js/array-base-flatten2d
+[@stdlib/array/base/flatten2d]: https://github.com/stdlib-js/array-base-flatten2d/tree/umd
-[@stdlib/array/base/flatten3d-by]: https://github.com/stdlib-js/array-base-flatten3d-by
+[@stdlib/array/base/flatten3d-by]: https://github.com/stdlib-js/array-base-flatten3d-by/tree/umd
-[@stdlib/array/base/flatten3d]: https://github.com/stdlib-js/array-base-flatten3d
+[@stdlib/array/base/flatten3d]: https://github.com/stdlib-js/array-base-flatten3d/tree/umd
-[@stdlib/array/base/flatten4d-by]: https://github.com/stdlib-js/array-base-flatten4d-by
+[@stdlib/array/base/flatten4d-by]: https://github.com/stdlib-js/array-base-flatten4d-by/tree/umd
-[@stdlib/array/base/flatten4d]: https://github.com/stdlib-js/array-base-flatten4d
+[@stdlib/array/base/flatten4d]: https://github.com/stdlib-js/array-base-flatten4d/tree/umd
-[@stdlib/array/base/flatten5d-by]: https://github.com/stdlib-js/array-base-flatten5d-by
+[@stdlib/array/base/flatten5d-by]: https://github.com/stdlib-js/array-base-flatten5d-by/tree/umd
-[@stdlib/array/base/flatten5d]: https://github.com/stdlib-js/array-base-flatten5d
+[@stdlib/array/base/flatten5d]: https://github.com/stdlib-js/array-base-flatten5d/tree/umd
-[@stdlib/array/base/fliplr2d]: https://github.com/stdlib-js/array-base-fliplr2d
+[@stdlib/array/base/fliplr2d]: https://github.com/stdlib-js/array-base-fliplr2d/tree/umd
-[@stdlib/array/base/fliplr3d]: https://github.com/stdlib-js/array-base-fliplr3d
+[@stdlib/array/base/fliplr3d]: https://github.com/stdlib-js/array-base-fliplr3d/tree/umd
-[@stdlib/array/base/fliplr4d]: https://github.com/stdlib-js/array-base-fliplr4d
+[@stdlib/array/base/fliplr4d]: https://github.com/stdlib-js/array-base-fliplr4d/tree/umd
-[@stdlib/array/base/fliplr5d]: https://github.com/stdlib-js/array-base-fliplr5d
+[@stdlib/array/base/fliplr5d]: https://github.com/stdlib-js/array-base-fliplr5d/tree/umd
-[@stdlib/array/base/flipud2d]: https://github.com/stdlib-js/array-base-flipud2d
+[@stdlib/array/base/flipud2d]: https://github.com/stdlib-js/array-base-flipud2d/tree/umd
-[@stdlib/array/base/flipud3d]: https://github.com/stdlib-js/array-base-flipud3d
+[@stdlib/array/base/flipud3d]: https://github.com/stdlib-js/array-base-flipud3d/tree/umd
-[@stdlib/array/base/flipud4d]: https://github.com/stdlib-js/array-base-flipud4d
+[@stdlib/array/base/flipud4d]: https://github.com/stdlib-js/array-base-flipud4d/tree/umd
-[@stdlib/array/base/flipud5d]: https://github.com/stdlib-js/array-base-flipud5d
+[@stdlib/array/base/flipud5d]: https://github.com/stdlib-js/array-base-flipud5d/tree/umd
-[@stdlib/array/base/from-strided]: https://github.com/stdlib-js/array-base-from-strided
+[@stdlib/array/base/from-strided]: https://github.com/stdlib-js/array-base-from-strided/tree/umd
-[@stdlib/array/base/getter]: https://github.com/stdlib-js/array-base-getter
+[@stdlib/array/base/getter]: https://github.com/stdlib-js/array-base-getter/tree/umd
-[@stdlib/array/base/group-entries-by]: https://github.com/stdlib-js/array-base-group-entries-by
+[@stdlib/array/base/group-entries-by]: https://github.com/stdlib-js/array-base-group-entries-by/tree/umd
-[@stdlib/array/base/group-entries]: https://github.com/stdlib-js/array-base-group-entries
+[@stdlib/array/base/group-entries]: https://github.com/stdlib-js/array-base-group-entries/tree/umd
-[@stdlib/array/base/group-indices-by]: https://github.com/stdlib-js/array-base-group-indices-by
+[@stdlib/array/base/group-indices-by]: https://github.com/stdlib-js/array-base-group-indices-by/tree/umd
-[@stdlib/array/base/group-indices]: https://github.com/stdlib-js/array-base-group-indices
+[@stdlib/array/base/group-indices]: https://github.com/stdlib-js/array-base-group-indices/tree/umd
-[@stdlib/array/base/group-values-by]: https://github.com/stdlib-js/array-base-group-values-by
+[@stdlib/array/base/group-values-by]: https://github.com/stdlib-js/array-base-group-values-by/tree/umd
-[@stdlib/array/base/group-values]: https://github.com/stdlib-js/array-base-group-values
+[@stdlib/array/base/group-values]: https://github.com/stdlib-js/array-base-group-values/tree/umd
-[@stdlib/array/base/incrspace]: https://github.com/stdlib-js/array-base-incrspace
+[@stdlib/array/base/incrspace]: https://github.com/stdlib-js/array-base-incrspace/tree/umd
-[@stdlib/array/base/index-of]: https://github.com/stdlib-js/array-base-index-of
+[@stdlib/array/base/index-of]: https://github.com/stdlib-js/array-base-index-of/tree/umd
-[@stdlib/array/base/join]: https://github.com/stdlib-js/array-base-join
+[@stdlib/array/base/join]: https://github.com/stdlib-js/array-base-join/tree/umd
-[@stdlib/array/base/last-index-of]: https://github.com/stdlib-js/array-base-last-index-of
+[@stdlib/array/base/last-index-of]: https://github.com/stdlib-js/array-base-last-index-of/tree/umd
-[@stdlib/array/base/last]: https://github.com/stdlib-js/array-base-last
+[@stdlib/array/base/last]: https://github.com/stdlib-js/array-base-last/tree/umd
-[@stdlib/array/base/linspace]: https://github.com/stdlib-js/array-base-linspace
+[@stdlib/array/base/linspace]: https://github.com/stdlib-js/array-base-linspace/tree/umd
-[@stdlib/array/base/logspace]: https://github.com/stdlib-js/array-base-logspace
+[@stdlib/array/base/logspace]: https://github.com/stdlib-js/array-base-logspace/tree/umd
-[@stdlib/array/base/map2d]: https://github.com/stdlib-js/array-base-map2d
+[@stdlib/array/base/map2d]: https://github.com/stdlib-js/array-base-map2d/tree/umd
-[@stdlib/array/base/map3d]: https://github.com/stdlib-js/array-base-map3d
+[@stdlib/array/base/map3d]: https://github.com/stdlib-js/array-base-map3d/tree/umd
-[@stdlib/array/base/map4d]: https://github.com/stdlib-js/array-base-map4d
+[@stdlib/array/base/map4d]: https://github.com/stdlib-js/array-base-map4d/tree/umd
-[@stdlib/array/base/map5d]: https://github.com/stdlib-js/array-base-map5d
+[@stdlib/array/base/map5d]: https://github.com/stdlib-js/array-base-map5d/tree/umd
-[@stdlib/array/base/min-signed-integer-dtype]: https://github.com/stdlib-js/array-base-min-signed-integer-dtype
+[@stdlib/array/base/min-signed-integer-dtype]: https://github.com/stdlib-js/array-base-min-signed-integer-dtype/tree/umd
-[@stdlib/array/base/min-unsigned-integer-dtype]: https://github.com/stdlib-js/array-base-min-unsigned-integer-dtype
+[@stdlib/array/base/min-unsigned-integer-dtype]: https://github.com/stdlib-js/array-base-min-unsigned-integer-dtype/tree/umd
-[@stdlib/array/base/mskbinary2d]: https://github.com/stdlib-js/array-base-mskbinary2d
+[@stdlib/array/base/mskbinary2d]: https://github.com/stdlib-js/array-base-mskbinary2d/tree/umd
-[@stdlib/array/base/mskfilter]: https://github.com/stdlib-js/array-base-mskfilter
+[@stdlib/array/base/mskfilter]: https://github.com/stdlib-js/array-base-mskfilter/tree/umd
-[@stdlib/array/base/mskput]: https://github.com/stdlib-js/array-base-mskput
+[@stdlib/array/base/mskput]: https://github.com/stdlib-js/array-base-mskput/tree/umd
-[@stdlib/array/base/mskreject]: https://github.com/stdlib-js/array-base-mskreject
+[@stdlib/array/base/mskreject]: https://github.com/stdlib-js/array-base-mskreject/tree/umd
-[@stdlib/array/base/mskunary2d]: https://github.com/stdlib-js/array-base-mskunary2d
+[@stdlib/array/base/mskunary2d]: https://github.com/stdlib-js/array-base-mskunary2d/tree/umd
-[@stdlib/array/base/mskunary3d]: https://github.com/stdlib-js/array-base-mskunary3d
+[@stdlib/array/base/mskunary3d]: https://github.com/stdlib-js/array-base-mskunary3d/tree/umd
-[@stdlib/array/base/n-cartesian-product]: https://github.com/stdlib-js/array-base-n-cartesian-product
+[@stdlib/array/base/n-cartesian-product]: https://github.com/stdlib-js/array-base-n-cartesian-product/tree/umd
-[@stdlib/array/base/none-by-right]: https://github.com/stdlib-js/array-base-none-by-right
+[@stdlib/array/base/none-by-right]: https://github.com/stdlib-js/array-base-none-by-right/tree/umd
-[@stdlib/array/base/none-by]: https://github.com/stdlib-js/array-base-none-by
+[@stdlib/array/base/none-by]: https://github.com/stdlib-js/array-base-none-by/tree/umd
-[@stdlib/array/base/none]: https://github.com/stdlib-js/array-base-none
+[@stdlib/array/base/none]: https://github.com/stdlib-js/array-base-none/tree/umd
-[@stdlib/array/base/one-to]: https://github.com/stdlib-js/array-base-one-to
+[@stdlib/array/base/one-to]: https://github.com/stdlib-js/array-base-one-to/tree/umd
-[@stdlib/array/base/ones]: https://github.com/stdlib-js/array-base-ones
+[@stdlib/array/base/ones]: https://github.com/stdlib-js/array-base-ones/tree/umd
-[@stdlib/array/base/ones2d]: https://github.com/stdlib-js/array-base-ones2d
+[@stdlib/array/base/ones2d]: https://github.com/stdlib-js/array-base-ones2d/tree/umd
-[@stdlib/array/base/ones3d]: https://github.com/stdlib-js/array-base-ones3d
+[@stdlib/array/base/ones3d]: https://github.com/stdlib-js/array-base-ones3d/tree/umd
-[@stdlib/array/base/ones4d]: https://github.com/stdlib-js/array-base-ones4d
+[@stdlib/array/base/ones4d]: https://github.com/stdlib-js/array-base-ones4d/tree/umd
-[@stdlib/array/base/ones5d]: https://github.com/stdlib-js/array-base-ones5d
+[@stdlib/array/base/ones5d]: https://github.com/stdlib-js/array-base-ones5d/tree/umd
-[@stdlib/array/base/onesnd]: https://github.com/stdlib-js/array-base-onesnd
+[@stdlib/array/base/onesnd]: https://github.com/stdlib-js/array-base-onesnd/tree/umd
-[@stdlib/array/base/place]: https://github.com/stdlib-js/array-base-place
+[@stdlib/array/base/place]: https://github.com/stdlib-js/array-base-place/tree/umd
-[@stdlib/array/base/put]: https://github.com/stdlib-js/array-base-put
+[@stdlib/array/base/put]: https://github.com/stdlib-js/array-base-put/tree/umd
-[@stdlib/array/base/quaternary2d]: https://github.com/stdlib-js/array-base-quaternary2d
+[@stdlib/array/base/quaternary2d]: https://github.com/stdlib-js/array-base-quaternary2d/tree/umd
-[@stdlib/array/base/quaternary3d]: https://github.com/stdlib-js/array-base-quaternary3d
+[@stdlib/array/base/quaternary3d]: https://github.com/stdlib-js/array-base-quaternary3d/tree/umd
-[@stdlib/array/base/quaternary4d]: https://github.com/stdlib-js/array-base-quaternary4d
+[@stdlib/array/base/quaternary4d]: https://github.com/stdlib-js/array-base-quaternary4d/tree/umd
-[@stdlib/array/base/quaternary5d]: https://github.com/stdlib-js/array-base-quaternary5d
+[@stdlib/array/base/quaternary5d]: https://github.com/stdlib-js/array-base-quaternary5d/tree/umd
-[@stdlib/array/base/quinary2d]: https://github.com/stdlib-js/array-base-quinary2d
+[@stdlib/array/base/quinary2d]: https://github.com/stdlib-js/array-base-quinary2d/tree/umd
-[@stdlib/array/base/quinary3d]: https://github.com/stdlib-js/array-base-quinary3d
+[@stdlib/array/base/quinary3d]: https://github.com/stdlib-js/array-base-quinary3d/tree/umd
-[@stdlib/array/base/quinary4d]: https://github.com/stdlib-js/array-base-quinary4d
+[@stdlib/array/base/quinary4d]: https://github.com/stdlib-js/array-base-quinary4d/tree/umd
-[@stdlib/array/base/quinary5d]: https://github.com/stdlib-js/array-base-quinary5d
+[@stdlib/array/base/quinary5d]: https://github.com/stdlib-js/array-base-quinary5d/tree/umd
-[@stdlib/array/base/reject]: https://github.com/stdlib-js/array-base-reject
+[@stdlib/array/base/reject]: https://github.com/stdlib-js/array-base-reject/tree/umd
-[@stdlib/array/base/remove-at]: https://github.com/stdlib-js/array-base-remove-at
+[@stdlib/array/base/remove-at]: https://github.com/stdlib-js/array-base-remove-at/tree/umd
-[@stdlib/array/base/resolve-getter]: https://github.com/stdlib-js/array-base-resolve-getter
+[@stdlib/array/base/resolve-getter]: https://github.com/stdlib-js/array-base-resolve-getter/tree/umd
-[@stdlib/array/base/resolve-setter]: https://github.com/stdlib-js/array-base-resolve-setter
+[@stdlib/array/base/resolve-setter]: https://github.com/stdlib-js/array-base-resolve-setter/tree/umd
-[@stdlib/array/base/reverse]: https://github.com/stdlib-js/array-base-reverse
+[@stdlib/array/base/reverse]: https://github.com/stdlib-js/array-base-reverse/tree/umd
-[@stdlib/array/base/setter]: https://github.com/stdlib-js/array-base-setter
+[@stdlib/array/base/setter]: https://github.com/stdlib-js/array-base-setter/tree/umd
-[@stdlib/array/base/slice]: https://github.com/stdlib-js/array-base-slice
+[@stdlib/array/base/slice]: https://github.com/stdlib-js/array-base-slice/tree/umd
-[@stdlib/array/base/strided2array2d]: https://github.com/stdlib-js/array-base-strided2array2d
+[@stdlib/array/base/strided2array2d]: https://github.com/stdlib-js/array-base-strided2array2d/tree/umd
-[@stdlib/array/base/strided2array3d]: https://github.com/stdlib-js/array-base-strided2array3d
+[@stdlib/array/base/strided2array3d]: https://github.com/stdlib-js/array-base-strided2array3d/tree/umd
-[@stdlib/array/base/strided2array4d]: https://github.com/stdlib-js/array-base-strided2array4d
+[@stdlib/array/base/strided2array4d]: https://github.com/stdlib-js/array-base-strided2array4d/tree/umd
-[@stdlib/array/base/strided2array5d]: https://github.com/stdlib-js/array-base-strided2array5d
+[@stdlib/array/base/strided2array5d]: https://github.com/stdlib-js/array-base-strided2array5d/tree/umd
-[@stdlib/array/base/take-indexed]: https://github.com/stdlib-js/array-base-take-indexed
+[@stdlib/array/base/take-indexed]: https://github.com/stdlib-js/array-base-take-indexed/tree/umd
-[@stdlib/array/base/take]: https://github.com/stdlib-js/array-base-take
+[@stdlib/array/base/take]: https://github.com/stdlib-js/array-base-take/tree/umd
-[@stdlib/array/base/take2d]: https://github.com/stdlib-js/array-base-take2d
+[@stdlib/array/base/take2d]: https://github.com/stdlib-js/array-base-take2d/tree/umd
-[@stdlib/array/base/take3d]: https://github.com/stdlib-js/array-base-take3d
+[@stdlib/array/base/take3d]: https://github.com/stdlib-js/array-base-take3d/tree/umd
-[@stdlib/array/base/ternary2d]: https://github.com/stdlib-js/array-base-ternary2d
+[@stdlib/array/base/ternary2d]: https://github.com/stdlib-js/array-base-ternary2d/tree/umd
-[@stdlib/array/base/ternary3d]: https://github.com/stdlib-js/array-base-ternary3d
+[@stdlib/array/base/ternary3d]: https://github.com/stdlib-js/array-base-ternary3d/tree/umd
-[@stdlib/array/base/ternary4d]: https://github.com/stdlib-js/array-base-ternary4d
+[@stdlib/array/base/ternary4d]: https://github.com/stdlib-js/array-base-ternary4d/tree/umd
-[@stdlib/array/base/ternary5d]: https://github.com/stdlib-js/array-base-ternary5d
+[@stdlib/array/base/ternary5d]: https://github.com/stdlib-js/array-base-ternary5d/tree/umd
-[@stdlib/array/base/to-accessor-array]: https://github.com/stdlib-js/array-base-to-accessor-array
+[@stdlib/array/base/to-accessor-array]: https://github.com/stdlib-js/array-base-to-accessor-array/tree/umd
-[@stdlib/array/base/to-deduped]: https://github.com/stdlib-js/array-base-to-deduped
+[@stdlib/array/base/to-deduped]: https://github.com/stdlib-js/array-base-to-deduped/tree/umd
-[@stdlib/array/base/to-reversed]: https://github.com/stdlib-js/array-base-to-reversed
+[@stdlib/array/base/to-reversed]: https://github.com/stdlib-js/array-base-to-reversed/tree/umd
-[@stdlib/array/base/unary2d-by]: https://github.com/stdlib-js/array-base-unary2d-by
+[@stdlib/array/base/unary2d-by]: https://github.com/stdlib-js/array-base-unary2d-by/tree/umd
-[@stdlib/array/base/unary2d]: https://github.com/stdlib-js/array-base-unary2d
+[@stdlib/array/base/unary2d]: https://github.com/stdlib-js/array-base-unary2d/tree/umd
-[@stdlib/array/base/unary3d]: https://github.com/stdlib-js/array-base-unary3d
+[@stdlib/array/base/unary3d]: https://github.com/stdlib-js/array-base-unary3d/tree/umd
-[@stdlib/array/base/unary4d]: https://github.com/stdlib-js/array-base-unary4d
+[@stdlib/array/base/unary4d]: https://github.com/stdlib-js/array-base-unary4d/tree/umd
-[@stdlib/array/base/unary5d]: https://github.com/stdlib-js/array-base-unary5d
+[@stdlib/array/base/unary5d]: https://github.com/stdlib-js/array-base-unary5d/tree/umd
-[@stdlib/array/base/unarynd]: https://github.com/stdlib-js/array-base-unarynd
+[@stdlib/array/base/unarynd]: https://github.com/stdlib-js/array-base-unarynd/tree/umd
-[@stdlib/array/base/unitspace]: https://github.com/stdlib-js/array-base-unitspace
+[@stdlib/array/base/unitspace]: https://github.com/stdlib-js/array-base-unitspace/tree/umd
-[@stdlib/array/base/where]: https://github.com/stdlib-js/array-base-where
+[@stdlib/array/base/where]: https://github.com/stdlib-js/array-base-where/tree/umd
-[@stdlib/array/base/with]: https://github.com/stdlib-js/array-base-with
+[@stdlib/array/base/with]: https://github.com/stdlib-js/array-base-with/tree/umd
-[@stdlib/array/base/without]: https://github.com/stdlib-js/array-base-without
+[@stdlib/array/base/without]: https://github.com/stdlib-js/array-base-without/tree/umd
-[@stdlib/array/base/zero-to]: https://github.com/stdlib-js/array-base-zero-to
+[@stdlib/array/base/zero-to]: https://github.com/stdlib-js/array-base-zero-to/tree/umd
-[@stdlib/array/base/zeros]: https://github.com/stdlib-js/array-base-zeros
+[@stdlib/array/base/zeros]: https://github.com/stdlib-js/array-base-zeros/tree/umd
-[@stdlib/array/base/zeros2d]: https://github.com/stdlib-js/array-base-zeros2d
+[@stdlib/array/base/zeros2d]: https://github.com/stdlib-js/array-base-zeros2d/tree/umd
-[@stdlib/array/base/zeros3d]: https://github.com/stdlib-js/array-base-zeros3d
+[@stdlib/array/base/zeros3d]: https://github.com/stdlib-js/array-base-zeros3d/tree/umd
-[@stdlib/array/base/zeros4d]: https://github.com/stdlib-js/array-base-zeros4d
+[@stdlib/array/base/zeros4d]: https://github.com/stdlib-js/array-base-zeros4d/tree/umd
-[@stdlib/array/base/zeros5d]: https://github.com/stdlib-js/array-base-zeros5d
+[@stdlib/array/base/zeros5d]: https://github.com/stdlib-js/array-base-zeros5d/tree/umd
-[@stdlib/array/base/zerosnd]: https://github.com/stdlib-js/array-base-zerosnd
+[@stdlib/array/base/zerosnd]: https://github.com/stdlib-js/array-base-zerosnd/tree/umd
diff --git a/SECURITY.md b/SECURITY.md
deleted file mode 100644
index 9702d4c..0000000
--- a/SECURITY.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Security
-
-> Policy for reporting security vulnerabilities.
-
-See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
diff --git a/branches.md b/branches.md
deleted file mode 100644
index a8251df..0000000
--- a/branches.md
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-# Branches
-
-This repository has the following branches:
-
-- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place.
-- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network).
-- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]).
-- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]).
-- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]).
-
-The following diagram illustrates the relationships among the above branches:
-
-```mermaid
-graph TD;
-A[stdlib]-->|generate standalone package|B;
-B[main] -->|productionize| C[production];
-C -->|bundle| D[esm];
-C -->|bundle| E[deno];
-C -->|bundle| F[umd];
-
-%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base"
-%% click B href "https://github.com/stdlib-js/array-base/tree/main"
-%% click C href "https://github.com/stdlib-js/array-base/tree/production"
-%% click D href "https://github.com/stdlib-js/array-base/tree/esm"
-%% click E href "https://github.com/stdlib-js/array-base/tree/deno"
-%% click F href "https://github.com/stdlib-js/array-base/tree/umd"
-```
-
-[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base
-[production-url]: https://github.com/stdlib-js/array-base/tree/production
-[deno-url]: https://github.com/stdlib-js/array-base/tree/deno
-[deno-readme]: https://github.com/stdlib-js/array-base/blob/deno/README.md
-[umd-url]: https://github.com/stdlib-js/array-base/tree/umd
-[umd-readme]: https://github.com/stdlib-js/array-base/blob/umd/README.md
-[esm-url]: https://github.com/stdlib-js/array-base/tree/esm
-[esm-readme]: https://github.com/stdlib-js/array-base/blob/esm/README.md
\ No newline at end of file
diff --git a/browser.js b/browser.js
new file mode 100644
index 0000000..3c45a5c
--- /dev/null
+++ b/browser.js
@@ -0,0 +1,3 @@
+// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
+var r,e;r=this,e=function(){"use strict";var r="function"==typeof Object.defineProperty?Object.defineProperty:null,e=Object.defineProperty;function t(r){return"number"==typeof r}function n(r){var e,t="";for(e=0;e0&&(e-=1),n=i.toExponential(e)):n=i.toPrecision(r.precision),r.alternate||(n=h.call(n,v,"$1e"),n=h.call(n,w,"e"),n=h.call(n,y,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return n=h.call(n,c,"e+0$1"),n=h.call(n,m,"e-0$1"),r.alternate&&(n=h.call(n,g,"$1."),n=h.call(n,p,"$1.e")),i>=0&&r.sign&&(n=r.sign+n),n=r.specifier===l.call(r.specifier)?l.call(n):s.call(n)}function d(r){var e,t="";for(e=0;e127)throw new Error("invalid character code. Value: "+n.arg);n.arg=T(a)?String(n.arg):E(a)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(n.precision=6),n.arg=b(n);break;default:throw new Error("invalid specifier: "+n.specifier)}n.maxWidth>=0&&n.arg.length>n.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=i(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=(c=n.arg,m=n.width,g=n.padRight,p=void 0,(p=m-c.length)<0?c:c=g?c+d(p):d(p)+c)),f+=n.arg||"",s+=1}return f}var A=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function F(r){var e={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return"."===r[4]&&void 0===r[5]&&(e.precision="1"),e}function k(r){var e,t,n,i;for(t=[],i=0,n=A.exec(r);n;)(e=r.slice(i,A.lastIndex-n[0].length)).length&&t.push(e),t.push(F(n)),i=A.lastIndex,n=A.exec(r);return(e=r.slice(i)).length&&t.push(e),t}function L(r){var e,t;if("string"!=typeof r)throw new TypeError(L("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[k(r)],t=1;tpe&&we(r)}function be(r){return se(r)&&ve(r)}function de(r){return me(r)&&ve(r.valueOf())}function Ee(r){return be(r)||de(r)}function _e(r){return be(r)&&r>=0}function Te(r){return de(r)&&r.valueOf()>=0}function xe(r){return _e(r)||Te(r)}N(Ee,"isPrimitive",be),N(Ee,"isObject",de),N(xe,"isPrimitive",_e),N(xe,"isObject",Te);var Ve=4294967295;function Ae(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&we(r.length)&&r.length>=0&&r.length<=Ve}var Fe=9007199254740991;function ke(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&we(r.length)&&r.length>=0&&r.length<=Fe}var Le="function"==typeof ArrayBuffer;function Re(r){return Le&&r instanceof ArrayBuffer||"[object ArrayBuffer]"===nr(r)}function Se(r){return"object"==typeof r&&null!==r&&!ir(r)}function je(r){return"string"==typeof r}var Be=String.prototype.valueOf,Oe=X();function Ie(r){return"object"==typeof r&&(r instanceof String||(Oe?function(r){try{return Be.call(r),!0}catch(r){return!1}}(r):"[object String]"===nr(r)))}function Me(r){return je(r)||Ie(r)}N(Me,"isPrimitive",je),N(Me,"isObject",Ie);var Ce=/./;function Pe(r){return"boolean"==typeof r}var Ne=Boolean,Ye=Boolean.prototype.toString,Ue=X();function We(r){return"object"==typeof r&&(r instanceof Ne||(Ue?function(r){try{return Ye.call(r),!0}catch(r){return!1}}(r):"[object Boolean]"===nr(r)))}function De(r){return Pe(r)||We(r)}N(De,"isPrimitive",Pe),N(De,"isObject",We);var $e="object"==typeof self?self:null,ze="object"==typeof window?window:null,qe="object"==typeof globalThis?globalThis:null,Ge=function(r){if(arguments.length){if(!Pe(r))throw new TypeError(L("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return new Function("return this;")()}if(qe)return qe;if($e)return $e;if(ze)return ze;throw new Error("unexpected error. Unable to resolve global object.")}(),He=Ge.document&&Ge.document.childNodes,Ze=Int8Array,Je="function"==typeof Ce||"object"==typeof Ze||"function"==typeof He?function(r){return sr(r).toLowerCase()}:function(r){var e;return null===r?"null":"object"==(e=typeof r)?sr(r).toLowerCase():e};function Xe(r){return"function"===Je(r)}function Ke(r,e){if(!(this instanceof Ke))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!se(r))throw new TypeError(L("invalid argument. Real component must be a number. Value: `%s`.",r));if(!se(e))throw new TypeError(L("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return C(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),C(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}N(Ke,"BYTES_PER_ELEMENT",8),N(Ke.prototype,"BYTES_PER_ELEMENT",8),N(Ke.prototype,"byteLength",16),N(Ke.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(Ke.prototype,"toJSON",(function(){var r={type:"Complex128"};return r.re=this.re,r.im=this.im,r}));var Qe="function"==typeof Math.fround?Math.fround:null,rt=new _r(1),et="function"==typeof Qe?Qe:function(r){return rt[0]=r,rt[0]};function tt(r,e){if(!(this instanceof tt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!se(r))throw new TypeError(L("invalid argument. Real component must be a number. Value: `%s`.",r));if(!se(e))throw new TypeError(L("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return C(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:et(r)}),C(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:et(e)}),this}function nt(r){return r instanceof Ke||r instanceof tt||"object"==typeof r&&null!==r&&"number"==typeof r.re&&"number"==typeof r.im}function it(r){return we(r/2)}N(tt,"BYTES_PER_ELEMENT",4),N(tt.prototype,"BYTES_PER_ELEMENT",4),N(tt.prototype,"byteLength",8),N(tt.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(tt.prototype,"toJSON",(function(){var r={type:"Complex64"};return r.re=this.re,r.im=this.im,r}));var ot=8;function at(r){return"object"==typeof r&&null!==r&&"Complex64Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===ot}var ut=16;function ft(r){return"object"==typeof r&&null!==r&&"Complex128Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===ut}function st(){return"function"==typeof er&&"symbol"==typeof er("foo")&&rr(er,"iterator")&&"symbol"==typeof er.iterator}var lt=st()?Symbol.iterator:null;function ht(r,e,t){C(r,e,{configurable:!1,enumerable:!1,get:t})}function ct(r,e){if(!(this instanceof ct))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!se(r))throw new TypeError(L("invalid argument. Real component must be a number. Value: `%s`.",r));if(!se(e))throw new TypeError(L("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return C(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:et(r)}),C(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:et(e)}),this}function mt(r){return r.re}function gt(r){return r.im}function pt(r,e){return new _r(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}function yt(r,e){return new yr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}function wt(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}N(ct,"BYTES_PER_ELEMENT",4),N(ct.prototype,"BYTES_PER_ELEMENT",4),N(ct.prototype,"byteLength",8),N(ct.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(ct.prototype,"toJSON",(function(){var r={type:"Complex64"};return r.re=this.re,r.im=this.im,r}));var vt=2*_r.BYTES_PER_ELEMENT,bt=st();function dt(r){return r instanceof Tt||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Et(r){return r===Tt||"Complex128Array"===r.name}function _t(r,e){return new ct(r[e*=2],r[e+1])}function Tt(){var r,e,t,n;if(e=arguments.length,!(this instanceof Tt))return 0===e?new Tt:1===e?new Tt(arguments[0]):2===e?new Tt(arguments[0],arguments[1]):new Tt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*vt));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function xt(r,e){if(!(this instanceof xt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!se(r))throw new TypeError(L("invalid argument. Real component must be a number. Value: `%s`.",r));if(!se(e))throw new TypeError(L("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return C(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),C(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}function Vt(r){return r.re}function At(r){return r.im}function Ft(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(Tt,"BYTES_PER_ELEMENT",vt),N(Tt,"name","Complex64Array"),N(Tt,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(dt(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&bt&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):wt(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return _t(this._buffer,r)})),ht(Tt.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Tt.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Tt.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Tt.prototype,"BYTES_PER_ELEMENT",Tt.BYTES_PER_ELEMENT),N(Tt.prototype,"copyWithin",(function(r,e){if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Tt.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Tt.prototype,"every",(function(r,e){var t,n;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=_t(t,n),r.call(e,i,n,this))return i})),N(Tt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=_t(t,n),r.call(e,i,n,this))return n;return-1})),N(Tt.prototype,"forEach",(function(r,e){var t,n,i;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return _t(this._buffer,r)})),N(Tt.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(Tt.prototype,"length",(function(){return this._length})),N(Tt.prototype,"map",(function(r,e){var t,n,i,o,a;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=_t(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(dt(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*vt,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*vt,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*vt):(i=e-r,t=n.byteOffset+r*vt),new this.constructor(n.buffer,t,i<0?0:i)})),N(Tt.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!dt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n})),N(xt,"BYTES_PER_ELEMENT",8),N(xt.prototype,"BYTES_PER_ELEMENT",8),N(xt.prototype,"byteLength",16),N(xt.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(xt.prototype,"toJSON",(function(){var r={type:"Complex128"};return r.re=this.re,r.im=this.im,r}));var kt=2*yr.BYTES_PER_ELEMENT,Lt=st();function Rt(r){return r instanceof Bt||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function St(r){return r===Bt||"Complex64Array"===r.name}function jt(r,e){return new xt(r[e*=2],r[e+1])}function Bt(){var r,e,t,n;if(e=arguments.length,!(this instanceof Bt))return 0===e?new Bt:1===e?new Bt(arguments[0]):2===e?new Bt(arguments[0],arguments[1]):new Bt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*kt));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function Ot(r){var e,t;for(e=[];!(t=r.next()).done;)e.push(Ne(t.value));return e}N(Bt,"BYTES_PER_ELEMENT",kt),N(Bt,"name","Complex128Array"),N(Bt,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!St(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Rt(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Lt&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):Ft(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return jt(this._buffer,r)})),ht(Bt.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Bt.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Bt.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Bt.prototype,"BYTES_PER_ELEMENT",Bt.BYTES_PER_ELEMENT),N(Bt.prototype,"copyWithin",(function(r,e){if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Bt.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Bt.prototype,"every",(function(r,e){var t,n;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=jt(t,n),r.call(e,i,n,this))return i})),N(Bt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=jt(t,n),r.call(e,i,n,this))return n;return-1})),N(Bt.prototype,"forEach",(function(r,e){var t,n,i;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return jt(this._buffer,r)})),ht(Bt.prototype,"length",(function(){return this._length})),N(Bt.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Bt.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=jt(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(Rt(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*kt,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*kt,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*kt):(i=e-r,t=n.byteOffset+r*kt),new this.constructor(n.buffer,t,i<0?0:i)})),N(Bt.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Rt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var It=Qr.BYTES_PER_ELEMENT,Mt=st();function Ct(r){return"object"==typeof r&&null!==r&&"BooleanArray"===r.constructor.name&&r.BYTES_PER_ELEMENT===It}function Pt(r){return r===Nt}function Nt(){var r,e,t,n,i;if(e=arguments.length,!(this instanceof Nt))return 0===e?new Nt:1===e?new Nt(arguments[0]):2===e?new Nt(arguments[0],arguments[1]):new Nt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new Qr(0);else if(1===e)if(_e(i=arguments[0]))t=new Qr(i);else if(ke(i))t=function(r,e){var t,n;for(t=e.length,n=0;nt.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*It));t=new Qr(t,r,n)}}return N(this,"_buffer",t),N(this,"_length",t.length),this}N(Nt,"BYTES_PER_ELEMENT",It),N(Nt,"name","BooleanArray"),N(Nt,"from",(function(r){var e,t,n,i,o,a,u,f,s;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Pt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),o=(i=new this(f))._buffer,s=0;s=0;i--)if(n=Ne(t[i]),r.call(e,n,i,this))return n})),N(Nt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Ct(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,i=this._length-1;i>=0;i--)if(n=Ne(t[i]),r.call(e,n,i,this))return i;return-1})),N(Nt.prototype,"get",(function(r){if(!Ct(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(r))throw new TypeError(L("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return Ne(this._buffer[r])})),ht(Nt.prototype,"length",(function(){return this._length})),N(Nt.prototype,"map",(function(r,e){var t,n,i,o;if(!Ct(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xe(r))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",r);for(i=this._buffer,t=(n=new this.constructor(this._length))._buffer,o=0;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ke(r)){if(t+(o=r.length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=Ct(r)?r._buffer:r,u=n.byteOffset+t*It,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Qr(e.length),a=0;a=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));n[t]=r?1:0}})),N(Nt.prototype,"sort",(function(r){var e;if(!Ct(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(e=this._buffer,0===arguments.length)return e.sort(),this;if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));return e.sort((function(e,t){return r(Ne(e),Ne(t))})),this})),N(Nt.prototype,"toReversed",(function(){var r,e,t,n,i;if(!Ct(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var Jt=2*_r.BYTES_PER_ELEMENT,Xt=st();function Kt(r){return r instanceof en||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Qt(r){return r===en||"Complex128Array"===r.name}function rn(r,e){return new ct(r[e*=2],r[e+1])}function en(){var r,e,t,n;if(e=arguments.length,!(this instanceof en))return 0===e?new en:1===e?new en(arguments[0]):2===e?new en(arguments[0],arguments[1]):new en(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Jt));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function tn(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(en,"BYTES_PER_ELEMENT",Jt),N(en,"name","Complex64Array"),N(en,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Qt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Kt(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Xt&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):Zt(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return rn(this._buffer,r)})),ht(en.prototype,"buffer",(function(){return this._buffer.buffer})),ht(en.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(en.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(en.prototype,"BYTES_PER_ELEMENT",en.BYTES_PER_ELEMENT),N(en.prototype,"copyWithin",(function(r,e){if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(en.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(en.prototype,"every",(function(r,e){var t,n;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=rn(t,n),r.call(e,i,n,this))return i})),N(en.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=rn(t,n),r.call(e,i,n,this))return n;return-1})),N(en.prototype,"forEach",(function(r,e){var t,n,i;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return rn(this._buffer,r)})),N(en.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(en.prototype,"length",(function(){return this._length})),N(en.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=rn(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(Kt(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*Jt,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*Jt,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*Jt):(i=e-r,t=n.byteOffset+r*Jt),new this.constructor(n.buffer,t,i<0?0:i)})),N(en.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Kt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n}));var nn=2*yr.BYTES_PER_ELEMENT,on=st();function an(r){return r instanceof sn||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function un(r){return r===sn||"Complex64Array"===r.name}function fn(r,e){return new xt(r[e*=2],r[e+1])}function sn(){var r,e,t,n;if(e=arguments.length,!(this instanceof sn))return 0===e?new sn:1===e?new sn(arguments[0]):2===e?new sn(arguments[0],arguments[1]):new sn(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*nn));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}N(sn,"BYTES_PER_ELEMENT",nn),N(sn,"name","Complex128Array"),N(sn,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(an(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&on&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):tn(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return fn(this._buffer,r)})),ht(sn.prototype,"buffer",(function(){return this._buffer.buffer})),ht(sn.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(sn.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(sn.prototype,"BYTES_PER_ELEMENT",sn.BYTES_PER_ELEMENT),N(sn.prototype,"copyWithin",(function(r,e){if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(sn.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(sn.prototype,"every",(function(r,e){var t,n;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=fn(t,n),r.call(e,i,n,this))return i})),N(sn.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=fn(t,n),r.call(e,i,n,this))return n;return-1})),N(sn.prototype,"forEach",(function(r,e){var t,n,i;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return fn(this._buffer,r)})),ht(sn.prototype,"length",(function(){return this._length})),N(sn.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(sn.prototype,"map",(function(r,e){var t,n,i,o,a;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=fn(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(an(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*nn,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*nn,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*nn):(i=e-r,t=n.byteOffset+r*nn),new this.constructor(n.buffer,t,i<0?0:i)})),N(sn.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!an(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var ln=[yr,_r,Ir,kr,Gr,Ur,fe,Qr,ie,en,sn],hn=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128"],cn=hn.length;function mn(r){var e=function(r){var e;if(ir(r))return"generic";if(ar(r))return null;for(e=0;e=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var vn=2*_r.BYTES_PER_ELEMENT,bn=st();function dn(r){return r instanceof Tn||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function En(r){return r===Tn||"Complex128Array"===r.name}function _n(r,e){return new ct(r[e*=2],r[e+1])}function Tn(){var r,e,t,n;if(e=arguments.length,!(this instanceof Tn))return 0===e?new Tn:1===e?new Tn(arguments[0]):2===e?new Tn(arguments[0],arguments[1]):new Tn(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*vn));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function xn(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(Tn,"BYTES_PER_ELEMENT",vn),N(Tn,"name","Complex64Array"),N(Tn,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!En(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(dn(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&bn&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):wn(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return _n(this._buffer,r)})),ht(Tn.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Tn.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Tn.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Tn.prototype,"BYTES_PER_ELEMENT",Tn.BYTES_PER_ELEMENT),N(Tn.prototype,"copyWithin",(function(r,e){if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Tn.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Tn.prototype,"every",(function(r,e){var t,n;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=_n(t,n),r.call(e,i,n,this))return i})),N(Tn.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=_n(t,n),r.call(e,i,n,this))return n;return-1})),N(Tn.prototype,"forEach",(function(r,e){var t,n,i;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return _n(this._buffer,r)})),N(Tn.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(Tn.prototype,"length",(function(){return this._length})),N(Tn.prototype,"map",(function(r,e){var t,n,i,o,a;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=_n(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(dn(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*vn,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*vn,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*vn):(i=e-r,t=n.byteOffset+r*vn),new this.constructor(n.buffer,t,i<0?0:i)})),N(Tn.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!dn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n}));var Vn=2*yr.BYTES_PER_ELEMENT,An=st();function Fn(r){return r instanceof Rn||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function kn(r){return r===Rn||"Complex64Array"===r.name}function Ln(r,e){return new xt(r[e*=2],r[e+1])}function Rn(){var r,e,t,n;if(e=arguments.length,!(this instanceof Rn))return 0===e?new Rn:1===e?new Rn(arguments[0]):2===e?new Rn(arguments[0],arguments[1]):new Rn(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Vn));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}N(Rn,"BYTES_PER_ELEMENT",Vn),N(Rn,"name","Complex128Array"),N(Rn,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!kn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Fn(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&An&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):xn(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return Ln(this._buffer,r)})),ht(Rn.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Rn.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Rn.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Rn.prototype,"BYTES_PER_ELEMENT",Rn.BYTES_PER_ELEMENT),N(Rn.prototype,"copyWithin",(function(r,e){if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Rn.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Rn.prototype,"every",(function(r,e){var t,n;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=Ln(t,n),r.call(e,i,n,this))return i})),N(Rn.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=Ln(t,n),r.call(e,i,n,this))return n;return-1})),N(Rn.prototype,"forEach",(function(r,e){var t,n,i;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return Ln(this._buffer,r)})),ht(Rn.prototype,"length",(function(){return this._length})),N(Rn.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Rn.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Ln(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(Fn(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*Vn,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*Vn,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*Vn):(i=e-r,t=n.byteOffset+r*Vn),new this.constructor(n.buffer,t,i<0?0:i)})),N(Rn.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Fn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var Sn=[yr,_r,Ir,kr,Gr,Ur,fe,Qr,ie,Tn,Rn],jn=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128"],Bn=jn.length;function On(r){var e;if(ir(r))return"generic";if(ar(r))return null;for(e=0;e0&&e.push("generic"),e)}("boolean")),zn={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},qn=/_and_generic$/,Gn=Mn(function(){var r,e,t;return 0===arguments.length?zn.all.slice():(t=!1,r=arguments[0],qn.test(r)&&"all"!==(r=Un(r,qn,""))&&(t=!0),e=(e=zn[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("complex_floating_point")),Hn=8,Zn=16;function Jn(r){return"object"==typeof r&&null!==r&&("Complex128Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===Zn||"Complex64Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===Hn)}var Xn={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},Kn=/_and_generic$/,Qn=Mn(function(){var r,e,t;return 0===arguments.length?Xn.all.slice():(t=!1,r=arguments[0],Kn.test(r)&&"all"!==(r=Un(r,Kn,""))&&(t=!0),e=(e=Xn[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}()),ri={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},ei=/_and_generic$/,ti=Mn(function(){var r,e,t;return 0===arguments.length?ri.all.slice():(t=!1,r=arguments[0],ei.test(r)&&"all"!==(r=Un(r,ei,""))&&(t=!0),e=(e=ri[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("floating_point")),ni={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},ii=/_and_generic$/,oi=Mn(function(){var r,e,t;return 0===arguments.length?ni.all.slice():(t=!1,r=arguments[0],ii.test(r)&&"all"!==(r=Un(r,ii,""))&&(t=!0),e=(e=ni[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("integer"));function ai(r){return Object.keys(Object(r))}var ui,fi=void 0!==Object.keys;function si(r){return"[object Arguments]"===nr(r)}ui=function(){return si(arguments)}();var li=ui;function hi(r){return r!=r}function ci(r){return se(r)&&hi(r)}function mi(r){return me(r)&&hi(r.valueOf())}function gi(r){return ci(r)||mi(r)}N(gi,"isPrimitive",ci),N(gi,"isObject",mi);var pi=Object.prototype.propertyIsEnumerable,yi=!pi.call("beep","0");function wi(r,e){var t;return null!=r&&(!(t=pi.call(r,e))&&yi&&Me(r)?!ci(e=+e)&&be(e)&&e>=0&&e=0&&r.length<=xr&&rr(r,"callee")&&!wi(r,"callee")},bi=Array.prototype.slice,di=wi((function(){}),"prototype"),Ei=!wi({toString:null},"toString");function _i(r,e,t){var n,i;if(!ke(r)&&!je(r))throw new TypeError(L("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(0===(n=r.length))return-1;if(3===arguments.length){if(!be(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));if(t>=0){if(t>=n)return-1;i=t}else(i=n+t)<0&&(i=0)}else i=0;if(gi(e)){for(;i0&&!rr(r,"0"))for(u=0;u1){if(!Mi(e))throw new TypeError(L("invalid argument. Options argument must be an object. Value: `%s`.",e));if(rr(e,"duplicates")&&!Pe(s=e.duplicates))throw new TypeError(L("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",s))}if(n=(t=Si(r)).length,a={},s)for(f=0;f0}var Xi,Ki,Qi={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},ro=/_and_generic$/,eo=Mn(function(){var r,e,t;return 0===arguments.length?Qi.all.slice():(t=!1,r=arguments[0],ro.test(r)&&"all"!==(r=Un(r,ro,""))&&(t=!0),e=(e=Qi[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("numeric")),to={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},no=/_and_generic$/,io=Mn(function(){var r,e,t;return 0===arguments.length?to.all.slice():(t=!1,r=arguments[0],no.test(r)&&"all"!==(r=Un(r,no,""))&&(t=!0),e=(e=to[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("real")),oo={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},ao=/_and_generic$/,uo=Mn(function(){var r,e,t;return 0===arguments.length?oo.all.slice():(t=!1,r=arguments[0],ao.test(r)&&"all"!==(r=Un(r,ao,""))&&(t=!0),e=(e=oo[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("real_floating_point")),fo={float64:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,bool:0,generic:1},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,bool:0,generic:1},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,bool:0,generic:1},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,bool:0,generic:1},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,bool:0,generic:1},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,bool:0,generic:1},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,bool:0,generic:1},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,bool:0,generic:1},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,bool:0,generic:1},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,bool:0,generic:1},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,bool:0,generic:1},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,bool:1,generic:1},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,bool:0,generic:1}},so=function(r){return 0===arguments.length?function(){var r,e,t,n,i,o,a,u,f;for(t={},e=(r=Si(fo)).length,f=0;f0&&e.push("generic"),e)}("signed_integer")),po={all:["complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]},yo=/_and_generic$/,wo=Mn(function(){var r,e,t;return 0===arguments.length?po.all.slice():(t=!1,r=arguments[0],yo.test(r)&&"all"!==(r=Un(r,yo,""))&&(t=!0),e=(e=po[r])?e.slice():[],t&&e.length>0&&e.push("generic"),e)}("unsigned_integer")),vo={};P(vo,"contains",In),P(vo,"hasSameValues",(function(r,e){var t,n,i,o,a;return r.length===e.length&&(n=mn(r),i=mn(e),n.accessorProtocol||i.accessorProtocol?(t=2,ft(r)?(o=yt(r,0),t-=1):at(r)&&(o=pt(r,0),t-=1),ft(e)?(a=yt(e,0),t-=1):at(e)&&(a=pt(e,0),t-=1),0===t?Yn(o,a):function(r,e){var t,n,i,o,a;for(t=r.data,n=e.data,i=r.accessors[0],o=e.accessors[0],a=0;a0})),P(vo,"isSameKindDataTypeCast",(function(r,e){return r===e||ho[r][e]>0})),P(vo,"isSignedIntegerDataType",go),P(vo,"isUnsignedIntegerDataType",wo);var bo={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128"};function Eo(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var _o=2*_r.BYTES_PER_ELEMENT,To=st();function xo(r){return r instanceof Fo||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Vo(r){return r===Fo||"Complex128Array"===r.name}function Ao(r,e){return new ct(r[e*=2],r[e+1])}function Fo(){var r,e,t,n;if(e=arguments.length,!(this instanceof Fo))return 0===e?new Fo:1===e?new Fo(arguments[0]):2===e?new Fo(arguments[0],arguments[1]):new Fo(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*_o));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function ko(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(Fo,"BYTES_PER_ELEMENT",_o),N(Fo,"name","Complex64Array"),N(Fo,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Vo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(xo(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&To&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):Eo(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return Ao(this._buffer,r)})),ht(Fo.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Fo.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Fo.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Fo.prototype,"BYTES_PER_ELEMENT",Fo.BYTES_PER_ELEMENT),N(Fo.prototype,"copyWithin",(function(r,e){if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Fo.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Fo.prototype,"every",(function(r,e){var t,n;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=Ao(t,n),r.call(e,i,n,this))return i})),N(Fo.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=Ao(t,n),r.call(e,i,n,this))return n;return-1})),N(Fo.prototype,"forEach",(function(r,e){var t,n,i;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return Ao(this._buffer,r)})),N(Fo.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(Fo.prototype,"length",(function(){return this._length})),N(Fo.prototype,"map",(function(r,e){var t,n,i,o,a;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Ao(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(xo(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*_o,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*_o,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*_o):(i=e-r,t=n.byteOffset+r*_o),new this.constructor(n.buffer,t,i<0?0:i)})),N(Fo.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!xo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n}));var Lo=2*yr.BYTES_PER_ELEMENT,Ro=st();function So(r){return r instanceof Oo||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function jo(r){return r===Oo||"Complex64Array"===r.name}function Bo(r,e){return new xt(r[e*=2],r[e+1])}function Oo(){var r,e,t,n;if(e=arguments.length,!(this instanceof Oo))return 0===e?new Oo:1===e?new Oo(arguments[0]):2===e?new Oo(arguments[0],arguments[1]):new Oo(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Lo));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}N(Oo,"BYTES_PER_ELEMENT",Lo),N(Oo,"name","Complex128Array"),N(Oo,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!jo(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(So(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Ro&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):ko(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return Bo(this._buffer,r)})),ht(Oo.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Oo.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Oo.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Oo.prototype,"BYTES_PER_ELEMENT",Oo.BYTES_PER_ELEMENT),N(Oo.prototype,"copyWithin",(function(r,e){if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Oo.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Oo.prototype,"every",(function(r,e){var t,n;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=Bo(t,n),r.call(e,i,n,this))return i})),N(Oo.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=Bo(t,n),r.call(e,i,n,this))return n;return-1})),N(Oo.prototype,"forEach",(function(r,e){var t,n,i;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return Bo(this._buffer,r)})),ht(Oo.prototype,"length",(function(){return this._length})),N(Oo.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Oo.prototype,"map",(function(r,e){var t,n,i,o,a;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Bo(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(So(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*Lo,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*Lo,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*Lo):(i=e-r,t=n.byteOffset+r*Lo),new this.constructor(n.buffer,t,i<0?0:i)})),N(Oo.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!So(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var Io=[yr,_r,Ir,kr,Gr,Ur,fe,Qr,ie,Fo,Oo],Mo=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128"],Co=Mo.length;function Po(r){var e=function(r){var e;if(ir(r))return"generic";if(ar(r))return null;for(e=0;e=0;s--)if(!((l=u-a+s)<0)){if(f=e[l],0!==(i=t[s])&&i0?r-1:r+1)}function zo(r){return r===vr||r===pe}var qo=Math.sqrt;function Go(r){return Math.abs(r)}var Ho,Zo={uint16:Ur,uint8:Qr};(Ho=new Zo.uint16(1))[0]=4660;var Jo,Xo,Ko=52===new Zo.uint8(Ho.buffer)[0];!0===Ko?(Jo=1,Xo=0):(Jo=0,Xo=1);var Qo={HIGH:Jo,LOW:Xo},ra=new yr(1),ea=new kr(ra.buffer),ta=Qo.HIGH,na=Qo.LOW;function ia(r,e,t,n){return ra[0]=r,e[n]=ea[ta],e[n+t]=ea[na],e}function oa(r){return ia(r,[0,0],1,0)}N(oa,"assign",ia);var aa=!0===Ko?0:1,ua=new yr(1),fa=new kr(ua.buffer);function sa(r,e){return ua[0]=r,fa[aa]=e>>>0,ua[0]}function la(r){return 0|r}var ha,ca,ma=2147483647,ga=2147483648,pa=!0===Ko?1:0,ya=new yr(1),wa=new kr(ya.buffer);function va(r){return ya[0]=r,wa[pa]}!0===Ko?(ha=1,ca=0):(ha=0,ca=1);var ba={HIGH:ha,LOW:ca},da=new yr(1),Ea=new kr(da.buffer),_a=ba.HIGH,Ta=ba.LOW;function xa(r,e){return Ea[_a]=r,Ea[Ta]=e,da[0]}var Va=[0,0];function Aa(r,e){var t,n;return oa.assign(r,Va,1,0),t=Va[0],t&=ma,n=va(e),xa(t|=n&=ga,Va[1])}var Fa=1072693247,ka=1e300,La=1e-300,Ra=!0===Ko?1:0,Sa=new yr(1),ja=new kr(Sa.buffer);function Ba(r,e){return Sa[0]=r,ja[Ra]=e>>>0,Sa[0]}var Oa=1023,Ia=1048575,Ma=1048576,Ca=1072693248,Pa=536870912,Na=524288,Ya=20,Ua=9007199254740992,Wa=.9617966939259756,Da=.9617967009544373,$a=-7.028461650952758e-9,za=[1,1.5],qa=[0,.5849624872207642],Ga=[0,1.350039202129749e-8],Ha=1.4426950408889634,Za=1.4426950216293335,Ja=1.9259629911266175e-8,Xa=1023,Ka=-1023,Qa=-1074,ru=22250738585072014e-324,eu=4503599627370496;function tu(r,e,t,n){return hi(r)||zo(r)?(e[n]=r,e[n+t]=0,e):0!==r&&Go(r)>>20)-Oa|0}(r),eXa?r<0?pe:vr:(e<=Ka?(e+=52,n=iu):n=1,oa.assign(r,uu,1,0),t=uu[0],t&=ou,n*xa(t|=e+Oa<<20,uu[1])))}var su=.6931471805599453,lu=1048575,hu=1048576,cu=1071644672,mu=20,gu=.6931471824645996,pu=-1.904654299957768e-9,yu=1072693247,wu=1105199104,vu=1139802112,bu=1083179008,du=1072693248,Eu=1083231232,_u=3230714880,Tu=31,xu=1e300,Vu=1e-300,Au=8008566259537294e-32,Fu=[0,0],ku=[0,0];function Lu(r,e){var t,n,i,o,a,u,f,s,l,h,c,m,g,p;if(hi(r)||hi(e))return NaN;if(oa.assign(e,Fu,1,0),a=Fu[0],0===Fu[1]){if(0===e)return 1;if(1===e)return r;if(-1===e)return 1/r;if(.5===e)return qo(r);if(-.5===e)return 1/qo(r);if(2===e)return r*r;if(3===e)return r*r*r;if(4===e)return(r*=r)*r;if(zo(e))return function(r,e){return-1===r?(r-r)/(r-r):1===r?1:Go(r)<1==(e===vr)?0:vr}(r,e)}if(oa.assign(r,Fu,1,0),o=Fu[0],0===Fu[1]){if(0===o)return function(r,e){return e===pe?vr:e===vr?0:e>0?$o(e)?r:0:$o(e)?Aa(vr,r):vr}(r,e);if(1===r)return 1;if(-1===r&&$o(e))return-1;if(zo(r))return r===pe?Lu(-0,-e):e<0?0:vr}if(r<0&&!1===we(e))return(r-r)/(r-r);if(i=Go(r),t=o&ma|0,n=a&ma|0,f=a>>>Tu|0,u=(u=o>>>Tu|0)&&$o(e)?-1:1,n>wu){if(n>vu)return function(r,e){return(va(r)&ma)<=Fa?e<0?ka*ka:La*La:e>0?ka*ka:La*La}(r,e);if(tdu)return 0===f?u*xu*xu:u*Vu*Vu;c=function(r,e){var t,n,i,o,a,u,f;return o=(i=e-1)*i*(0===(f=i)?.5:.5+f*(.25*f-.3333333333333333)),t=(u=i*Ja-o*Ha)-((n=sa(n=(a=Za*i)+u,0))-a),r[0]=n,r[1]=t,r}(ku,i)}else c=function(r,e,t){var n,i,o,a,u,f,s,l,h,c,m,g,p,y,w,v,b,d,E,_,T;return d=0,t>Ya)-Oa|0,t=(E=t&Ia|0)|Ca|0,E<=235662?_=0:E<767610?_=1:(_=0,d+=1,t-=Ma),a=sa(i=(v=(e=Ba(e,t))-(s=za[_]))*(b=1/(e+s)),0),n=(t>>1|Pa)+Na,f=Ba(0,n+=_<<18),w=(o=i*i)*o*(0===(T=o)?.5999999999999946:.5999999999999946+T*(.4285714285785502+T*(.33333332981837743+T*(.272728123808534+T*(.23066074577556175+.20697501780033842*T))))),f=sa(f=3+(o=a*a)+(w+=(u=b*(v-a*f-a*(e-(f-s))))*(a+i)),0),h=sa(h=(v=a*f)+(b=u*f+(w-(f-3-o))*i),0),c=Da*h,p=(m=$a*h+(b-(h-v))*Wa+Ga[_])-((g=sa(g=c+m+(l=qa[_])+(y=d),0))-y-l-c),r[0]=g,r[1]=p,r}(ku,i,t);if(m=(h=(e-(s=sa(e,0)))*c[0]+e*c[1])+(l=s*c[0]),oa.assign(m,Fu,1,0),g=la(Fu[0]),p=la(Fu[1]),g>=bu){if(0!=(g-bu|p))return u*xu*xu;if(h+Au>m-l)return u*xu*xu}else if((g&ma)>=Eu){if(0!=(g-_u|p))return u*Vu*Vu;if(h<=m-l)return u*Vu*Vu}return m=function(r,e,t){var n,i,o,a,u,f,s,l,h,c;return h=((l=r&ma|0)>>mu)-Oa|0,s=0,l>cu&&(i=Ba(0,((s=r+(hu>>h+1)>>>0)&~(lu>>(h=((s&ma)>>mu)-Oa|0)))>>>0),s=(s&lu|hu)>>mu-h>>>0,r<0&&(s=-s),e-=i),r=la(r=va(f=1-((f=(o=(i=sa(i=t+e,0))*gu)+(a=(t-(i-e))*su+i*pu))*(n=f-(i=f*f)*(0===(c=i)?.16666666666666602:.16666666666666602+c*(c*(6613756321437934e-20+c*(4.1381367970572385e-8*c-16533902205465252e-22))-.0027777777777015593)))/(n-2)-((u=a-(f-o))+f*u)-f))),(r+=s<>>0)>>mu<=0?fu(f,s):Ba(f,r)}(g,l,h),u*m}function Ru(r){var e,t,n,i;for(n=Po(r),t=r.length,e=[],i=0;i0?0:e-1;else if(n<0){if((n=e+n)<0){if(t)return{code:"ERR_SLICE_OUT_OF_BOUNDS"};n=0}}else if(n>=e){if(t)return{code:"ERR_SLICE_OUT_OF_BOUNDS"};n=o<0?e-1:e}if(null===i)i=o>0?e:null;else if(i<0){if((i=e+i)<0)if(o>0){if(t)return{code:"ERR_SLICE_OUT_OF_BOUNDS"};i=0}else{if(t&&i<-1)return{code:"ERR_SLICE_OUT_OF_BOUNDS"};i=null}}else if(i>e){if(t)return{code:"ERR_SLICE_OUT_OF_BOUNDS"};i=e}return new Ku(n,i,o)}N(Wu,"assign",Uu),N(zu,"assign",$u),N(Hu,"assign",Gu),N(Ku,"name","Slice"),ht(Ku.prototype,"start",(function(){return this._start})),ht(Ku.prototype,"stop",(function(){return this._stop})),ht(Ku.prototype,"step",(function(){return this._step})),N(Ku.prototype,"toString",(function(){return"Slice("+this._start+","+this._stop+","+this.step+")"})),N(Ku.prototype,"toJSON",(function(){return{type:"Slice",data:[this._start,this._stop,this._step]}}));var rf=Math.ceil;function ef(r){var e,t,n;return t=r.start,null===(n=r.stop)&&(n=-1),(e=r.step)>0&&t>=n||e<0&&t<=n?0:rf((n-t)/e)}var tf={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128"};function nf(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var of=2*_r.BYTES_PER_ELEMENT,af=st();function uf(r){return r instanceof lf||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function ff(r){return r===lf||"Complex128Array"===r.name}function sf(r,e){return new ct(r[e*=2],r[e+1])}function lf(){var r,e,t,n;if(e=arguments.length,!(this instanceof lf))return 0===e?new lf:1===e?new lf(arguments[0]):2===e?new lf(arguments[0],arguments[1]):new lf(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*of));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function hf(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(lf,"BYTES_PER_ELEMENT",of),N(lf,"name","Complex64Array"),N(lf,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!ff(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(uf(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&af&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):nf(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return sf(this._buffer,r)})),ht(lf.prototype,"buffer",(function(){return this._buffer.buffer})),ht(lf.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(lf.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(lf.prototype,"BYTES_PER_ELEMENT",lf.BYTES_PER_ELEMENT),N(lf.prototype,"copyWithin",(function(r,e){if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(lf.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(lf.prototype,"every",(function(r,e){var t,n;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=sf(t,n),r.call(e,i,n,this))return i})),N(lf.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=sf(t,n),r.call(e,i,n,this))return n;return-1})),N(lf.prototype,"forEach",(function(r,e){var t,n,i;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return sf(this._buffer,r)})),N(lf.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(lf.prototype,"length",(function(){return this._length})),N(lf.prototype,"map",(function(r,e){var t,n,i,o,a;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=sf(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(uf(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*of,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*of,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*of):(i=e-r,t=n.byteOffset+r*of),new this.constructor(n.buffer,t,i<0?0:i)})),N(lf.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!uf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n}));var cf=2*yr.BYTES_PER_ELEMENT,mf=st();function gf(r){return r instanceof wf||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function pf(r){return r===wf||"Complex64Array"===r.name}function yf(r,e){return new xt(r[e*=2],r[e+1])}function wf(){var r,e,t,n;if(e=arguments.length,!(this instanceof wf))return 0===e?new wf:1===e?new wf(arguments[0]):2===e?new wf(arguments[0],arguments[1]):new wf(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*cf));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}N(wf,"BYTES_PER_ELEMENT",cf),N(wf,"name","Complex128Array"),N(wf,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(gf(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&mf&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):hf(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return yf(this._buffer,r)})),ht(wf.prototype,"buffer",(function(){return this._buffer.buffer})),ht(wf.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(wf.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(wf.prototype,"BYTES_PER_ELEMENT",wf.BYTES_PER_ELEMENT),N(wf.prototype,"copyWithin",(function(r,e){if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(wf.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(wf.prototype,"every",(function(r,e){var t,n;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=yf(t,n),r.call(e,i,n,this))return i})),N(wf.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=yf(t,n),r.call(e,i,n,this))return n;return-1})),N(wf.prototype,"forEach",(function(r,e){var t,n,i;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return yf(this._buffer,r)})),ht(wf.prototype,"length",(function(){return this._length})),N(wf.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(wf.prototype,"map",(function(r,e){var t,n,i,o,a;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=yf(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(gf(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*cf,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*cf,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*cf):(i=e-r,t=n.byteOffset+r*cf),new this.constructor(n.buffer,t,i<0?0:i)})),N(wf.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!gf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var vf=[yr,_r,Ir,kr,Gr,Ur,fe,Qr,ie,lf,wf],bf=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128"],df=bf.length;function Ef(r,e,t,n,i,o,a){var u,f,s,l,h,c,m;for(u=e.data,f=i.data,l=e.accessors[0],s=i.accessors[1],h=n,c=a,m=0;m0)for(l=0;l0)for(c=0;c=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var kf=2*_r.BYTES_PER_ELEMENT,Lf=st();function Rf(r){return r instanceof Bf||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Sf(r){return r===Bf||"Complex128Array"===r.name}function jf(r,e){return new ct(r[e*=2],r[e+1])}function Bf(){var r,e,t,n;if(e=arguments.length,!(this instanceof Bf))return 0===e?new Bf:1===e?new Bf(arguments[0]):2===e?new Bf(arguments[0],arguments[1]):new Bf(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*kf));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function Of(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(Bf,"BYTES_PER_ELEMENT",kf),N(Bf,"name","Complex64Array"),N(Bf,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Sf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Rf(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Lf&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):Ff(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return jf(this._buffer,r)})),ht(Bf.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Bf.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Bf.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Bf.prototype,"BYTES_PER_ELEMENT",Bf.BYTES_PER_ELEMENT),N(Bf.prototype,"copyWithin",(function(r,e){if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Bf.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Bf.prototype,"every",(function(r,e){var t,n;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=jf(t,n),r.call(e,i,n,this))return i})),N(Bf.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=jf(t,n),r.call(e,i,n,this))return n;return-1})),N(Bf.prototype,"forEach",(function(r,e){var t,n,i;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return jf(this._buffer,r)})),N(Bf.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(Bf.prototype,"length",(function(){return this._length})),N(Bf.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=jf(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=gt(r))}if(Rf(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*kf,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*kf,e.buffer===n.buffer&&e.byteOffsets){for(i=new _r(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*kf):(i=e-r,t=n.byteOffset+r*kf),new this.constructor(n.buffer,t,i<0?0:i)})),N(Bf.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Rf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=gt(e),n}));var If=2*yr.BYTES_PER_ELEMENT,Mf=st();function Cf(r){return r instanceof Yf||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Pf(r){return r===Yf||"Complex64Array"===r.name}function Nf(r,e){return new xt(r[e*=2],r[e+1])}function Yf(){var r,e,t,n;if(e=arguments.length,!(this instanceof Yf))return 0===e?new Yf:1===e?new Yf(arguments[0]):2===e?new Yf(arguments[0],arguments[1]):new Yf(arguments[0],arguments[1],arguments[2]);if(0===e)t=new yr(0);else if(1===e)if(_e(arguments[0]))t=new yr(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*If));t=new yr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}N(Yf,"BYTES_PER_ELEMENT",If),N(Yf,"name","Complex128Array"),N(Yf,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Pf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Cf(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Mf&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Vt(o),At(o))}return n}(o,n,e):Of(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return Nf(this._buffer,r)})),ht(Yf.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Yf.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Yf.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Yf.prototype,"BYTES_PER_ELEMENT",Yf.BYTES_PER_ELEMENT),N(Yf.prototype,"copyWithin",(function(r,e){if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Yf.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new xt(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Yf.prototype,"every",(function(r,e){var t,n;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=Vt(r),u=At(r),f=e;f=0;n--)if(i=Nf(t,n),r.call(e,i,n,this))return i})),N(Yf.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=Nf(t,n),r.call(e,i,n,this))return n;return-1})),N(Yf.prototype,"forEach",(function(r,e){var t,n,i;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return Nf(this._buffer,r)})),ht(Yf.prototype,"length",(function(){return this._length})),N(Yf.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=Vt(r),o=At(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Yf.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Nf(t,0),o=1}for(;o1){if(!_e(t=arguments[1]))throw new TypeError(L("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(nt(r)){if(t>=this._length)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=Vt(r),void(n[t+1]=At(r))}if(Cf(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*If,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*If,e.buffer===n.buffer&&e.byteOffsets){for(i=new yr(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;fu&&(e=u)}}for(t=ri&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*If):(i=e-r,t=n.byteOffset+r*If),new this.constructor(n.buffer,t,i<0?0:i)})),N(Yf.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Cf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i=i)throw new RangeError(L("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!nt(e))throw new TypeError(L("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=Vt(e),t[2*r+1]=At(e),n}));var Uf=[yr,_r,Ir,kr,Gr,Ur,fe,Qr,ie,Bf,Yf],Wf=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128"],Df=Wf.length;function $f(r){var e;if(ir(r))return"generic";if(ar(r))return null;for(e=0;e=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),gt(n))}return e}var Gf=2*_r.BYTES_PER_ELEMENT,Hf=st();function Zf(r){return r instanceof Kf||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Jf(r){return r===Kf||"Complex128Array"===r.name}function Xf(r,e){return new ct(r[e*=2],r[e+1])}function Kf(){var r,e,t,n;if(e=arguments.length,!(this instanceof Kf))return 0===e?new Kf:1===e?new Kf(arguments[0]):2===e?new Kf(arguments[0],arguments[1]):new Kf(arguments[0],arguments[1],arguments[2]);if(0===e)t=new _r(0);else if(1===e)if(_e(arguments[0]))t=new _r(2*arguments[0]);else if(ke(arguments[0]))if((n=(t=arguments[0]).length)&&ir(t)&&nt(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;it.byteLength-r)throw new RangeError(L("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Gf));t=new _r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function Qf(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ae(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!nt(n))return new TypeError(L("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(Vt(n),At(n))}return e}N(Kf,"BYTES_PER_ELEMENT",Gf),N(Kf,"name","Complex64Array"),N(Kf,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!Xe(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Jf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!Xe(n=arguments[1]))throw new TypeError(L("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Zf(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(ke(r)){if(n){for(f=r.length,u=r.get&&r.set?G("default"):D("default"),h=0;h=2))throw new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Se(r)&&Hf&&Xe(r[lt])){if(!Xe((o=r[lt]()).next))throw new TypeError(L("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ae(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!nt(o))return new TypeError(L("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),gt(o))}return n}(o,n,e):qf(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h=this._length))return Xf(this._buffer,r)})),ht(Kf.prototype,"buffer",(function(){return this._buffer.buffer})),ht(Kf.prototype,"byteLength",(function(){return this._buffer.byteLength})),ht(Kf.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Kf.prototype,"BYTES_PER_ELEMENT",Kf.BYTES_PER_ELEMENT),N(Kf.prototype,"copyWithin",(function(r,e){if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Kf.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;return o+=1,i||o>=n?{done:!0}:(e=new ct(r[a+=2],r[a+1]),{value:[o,e],done:!1})})),N(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),lt&&N(t,lt,(function(){return e.entries()})),t})),N(Kf.prototype,"every",(function(r,e){var t,n;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!we(t))throw new TypeError(L("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=gt(r),f=e;f=0;n--)if(i=Xf(t,n),r.call(e,i,n,this))return i})),N(Kf.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=Xf(t,n),r.call(e,i,n,this))return n;return-1})),N(Kf.prototype,"forEach",(function(r,e){var t,n,i;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n=this._length))return Xf(this._buffer,r)})),N(Kf.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!nt(r))throw new TypeError(L("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a1){if(!we(e))throw new TypeError(L("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=gt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),ht(Kf.prototype,"length",(function(){return this._length})),N(Kf.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Zf(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xe(r))throw new TypeError(L("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o